public Method

Mail.base64_decode!

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

Source Code

# File action_mailer/vendor/tmail-1.2.2/tmail/interface.rb, line 983
def base64_decode!
  if /base64/i === self.transfer_encoding('')
    store 'Content-Transfer-Encoding', '8bit'
    self.body = Base64.decode(self.body, @config.strict_base64decode?)
  end
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.