Methods
Public Instance methods
[ show source ]
# File lib/action_mailer/vendor/tmail/net.rb, line 219
219: def exec( mail )
220: mail.mime_version = '1.0'
221: b = mail.body
222: if NKF.guess(b) != NKF::BINARY
223: on_text b
224: else
225: on_binary b
226: end
227: end
[ show source ]
# File lib/action_mailer/vendor/tmail/net.rb, line 235
235: def on_binary( body )
236: mail.body = [body].pack('m')
237: mail.set_content_type 'application', 'octet-stream'
238: mail.encoding = 'Base64'
239: end
[ show source ]
# File lib/action_mailer/vendor/tmail/net.rb, line 229
229: def on_text( body )
230: mail.body = NKF.nkf('-j -m0', body)
231: mail.set_content_type 'text', 'plain', {'charset' => 'iso-2022-jp'}
232: mail.encoding = '7bit'
233: end