Method: Mailit::Mail#initialize
- Defined in:
- lib/mailit/mail.rb
#initialize(options = {}) ⇒ Mail
Create an instance of Mailit::Mailer.
93 94 95 96 97 98 99 100 101 102 |
# File 'lib/mailit/mail.rb', line 93 def initialize( = {}) @headers = [] @attachments = [] @attachment_boundary = self.class.generate_boundary @body_boundary = self.class.generate_boundary @charset = 'utf-8' @html = @text = nil .each{|key, value| __send__("#{key}=", value) } end |