Displaying 1 result from an estimated 1 matches for "quoted_body".
2005 Mar 29
0
ActionMailer tmail/quoting.rb problem
...ecord instance. topic attrs encoding is Shift_JIS.
mail = Notifications.create_invoice(sent_on, {"topic"=>topic})
# convert from Shift_JIS to ISO-2022-JP
# mail.body is incompatible between 1.7.1 and 1.8.0 in ActionMailer...
mail.body = NKF.nkf(''-Sj -m0'', mail.quoted_body) # sigh.
Notifications.deliver(mail)
class Notifications < ActionMailer::Base
@@default_charset = "iso-2022-jp"
@@encode_subject = false
# and set Ruby option -Ks (Kcode is SJIS).
# uses Base64 encoding (default in TMail).
def invoice(sent_on = Time.now, options = {})...