instance method decoded

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

decoded( eol = "\n", charset = 'e', dest = nil )

Returns the TMail object decoded and ready to be used by you, your program 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.

For Example:

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

Parameters

eol opt = "\n"
charset opt = 'e'
dest opt = nil
Source
# File actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/encode.rb, line 88
    def decoded( eol = "\n", charset = 'e', dest = nil )
      # Turn the E-Mail into a string and return it with all
      # encoded characters decoded.  alias for to_s
      accept_strategy Decoder, eol, charset, dest
    end

Defined in actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/encode.rb line 88 · 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