在 Rails 中发送之前将邮件编码为可引用打印
我看到这个问题但无法利用它: Ruby 电子邮件编码和引用打印内容
我想发送电子邮件作为可引用打印的内容发送,但它以未编码的 text/html
形式发送。有什么帮助吗?
class UserMailer < ActionMailer::Base
def welcome_mail(user)
recipients user.email
from "[email protected]"
subject "Thanks for registering"
body :user => user
end
end
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 "[email protected]"
subject "Thanks for registering"
body :user => user
end
end
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Ruby Quiz 上发布了一个解决方案。
There is a solution posted on Ruby Quiz.