有没有一种直接的方法来指导 TMail 使正文编码为“引用可打印”?我只在其中看到用于解码此类内容的方法,而不是创建它。
问问题
2828 次
1 回答
4
你只是在使用TMail
,还是在使用它ActionMailer
?看起来它TMail
本身没有编码为的能力quoted-printable
。不过,貌似ActionMailer
确实有这个能力。
看起来TMail
允许您Content-Transfer-Encoding
按如下方式设置标题:-
mail = TMail::Mail.new
mail.transfer_encoding = "quoted-printable"
但看起来这实际上并没有对身体进行编码。
您可以在此处ActionMailer
查看设置此标头。似乎是.quoted-printable
ActionMailer
ActionMailer
具有ActionMailer::Quoting::quoted_printable方法将正文编码为quoted-printable
. 也许你可以利用这个......?
于 2009-06-29T10:08:26.227 回答