Methods
Public Instance methods
[ show source ]
# File lib/action_mailer/vendor/tmail/net.rb, line 238
238: def exec( mail )
239: mail.mime_version = '1.0'
240: b = mail.body
241: if NKF.guess(b) != NKF::BINARY
242: on_text b
243: else
244: on_binary b
245: end
246: end
[ show source ]
# File lib/action_mailer/vendor/tmail/net.rb, line 254
254: def on_binary( body )
255: mail.body = [body].pack('m')
256: mail.set_content_type 'application', 'octet-stream'
257: mail.encoding = 'Base64'
258: end
[ show source ]
# File lib/action_mailer/vendor/tmail/net.rb, line 248
248: def on_text( body )
249: mail.body = NKF.nkf('-j -m0', body)
250: mail.set_content_type 'text', 'plain', {'charset' => 'iso-2022-jp'}
251: mail.encoding = '7bit'
252: end