开发者

Encode mail as quoted-printable before sending in Rails

开发者 https://www.devze.com 2022-12-27 21:07 出处:网络
I saw this question and couldn\'t make use of it: Ruby email encoding and quoted-printable content I\'d like to send out开发者_如何转开发 email as quoted-printable, but it\'s going out as unencoded t

I saw this question and couldn't make use of it: Ruby email encoding and quoted-printable content

I'd like to send out开发者_如何转开发 email as quoted-printable, but it's going out as unencoded text/html. Any help?

class UserMailer < ActionMailer::Base

  def welcome_mail(user)
    recipients        user.email
    from              "no-reply@example.com"
    subject           "Thanks for registering"
    body              :user => user
  end

end


There is a solution posted on Ruby Quiz.

0

精彩评论

暂无评论...
验证码 换一张
取 消