instance method
transfer_encoding=
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
transfer_encoding=( str )
Destructively sets the transfer encoding of the mail object to the passed string, you should note though that this does nothing to the mail body, just changes the header value, you will need to encode or decode the body as well to match whatever you put in this header value.
Example:
mail = TMail::Mail.new mail.transfer_encoding #=> nil mail.transfer_encoding = "base64" mail.transfer_encoding #=> "base64"
Parameters
-
strreq
Source
# File actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/interface.rb, line 903
def transfer_encoding=( str )
set_string_attr 'Content-Transfer-Encoding', str
end
Defined in actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/interface.rb line 903
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in TMail::Mail