Is there a straightforward way to coach TMail to make the body encoded with "quoted-printable"? I only see methods in there for decoding content like that, not creating it.
相关问题
- How to specify memcache server to Rack::Session::M
- Why am I getting a “C compiler cannot create execu
- reference to a method?
- ruby 1.9 wrong file encoding on windows
- gem cleanup shows error: Unable to uninstall bundl
相关文章
- Ruby using wrong version of openssl
- Difference between Thread#run and Thread#wakeup?
- how to call a active record named scope with a str
- “No explicit conversion of Symbol into String” for
- Segmentation fault with ruby 2.0.0p247 leading to
- How do I make a forward e-mail link?
- How to detect if an element exists in Watir
- uninitialized constant Mysql2::Client::SECURE_CONN
Are you just using
TMail
, or are you using it withActionMailer
? It looks likeTMail
itself does not have the ability to encode asquoted-printable
. However, it looks likeActionMailer
does have this ability.It looks like
TMail
allows you to set theContent-Transfer-Encoding
header as follows :-But it looks like this doesn't actually encode the body.
You can see
ActionMailer
setting this header here.quoted-printable
seems to be the default forActionMailer
.ActionMailer
has the ActionMailer::Quoting::quoted_printable method to encode the body asquoted-printable
. Maybe you can make use of this...?