开发者

Encode mail as quoted-printable before sending in Rails

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜