instance method encoded

Ruby on Rails 2.3.18

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

encoded( eol = "\r\n", charset = 'j', dest = nil )

Returns the TMail object encoded and ready to be sent via SMTP etc. You should call this before you are packaging up your email to correctly escape all the values that need escaping in the email, line wrap the email etc.

It is also a good idea to call this before you marshal or serialize a TMail object.

For Example:

email = TMail::Load(my_email_file)
email_to_send = email.encoded

Parameters

eol opt = "\r\n"
charset opt = 'j'
dest opt = nil
Source
# File actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/encode.rb, line 73
    def encoded( eol = "\r\n", charset = 'j', dest = nil )
      accept_strategy Encoder, eol, charset, dest
    end

Defined in actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/encode.rb line 73 · View on GitHub · Improve this page · Find usages on GitHub

Defined in TMail::StrategyInterface

Type at least 2 characters to search.

↑↓ navigate · open · esc close