Displaying 1 result from an estimated 1 matches for "encode_subject".
2005 Mar 29
0
ActionMailer tmail/quoting.rb problem
...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 = {})
    @subject    = "in Japanese ..."
    @body       = options
    @recipients = ''rcpt-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org''...