public Method

Mail.base64_encode!

Destructively convert the Mail object’s body into a Base64 encoded email returning the modified Mail object

Source Code

# File action_mailer/vendor/tmail-1.2.2/tmail/interface.rb, line 971
def base64_encode!
  store 'Content-Transfer-Encoding', 'Base64'
  self.body = Base64.folding_encode(self.body)
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.