在发送Rails之前,将邮件编码为quoted-printable

时间:2010-04-19 03:58:25

标签: ruby-on-rails encoding actionmailer quoted-printable

我看到了这个问题并且无法使用它: Ruby email encoding and quoted-printable content

我想发送电子邮件为quoted-printable,但它会以未编码的text/html发送出去。有什么帮助吗?

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

1 个答案:

答案 0 :(得分:1)

Ruby Quiz上发布了一个解决方案。