Class: Mailgun::Mail

Inherits:
Object
  • Object
show all
Defined in:
lib/mailgun/mail.rb

Instance Method Summary collapse

Constructor Details

#initialize(mailgun) ⇒ Mail

Returns a new instance of Mail.



4
5
6
# File 'lib/mailgun/mail.rb', line 4

def initialize(mailgun)
  @mailgun = mailgun
end

Instance Method Details

#send_emailObject

send email



9
10
11
12
13
14
15
16
17
18
# File 'lib/mailgun/mail.rb', line 9

def send_email()
  # TODO with the following options
  # :from, :to, :cc, :bcc, :subject, :text, :html 
  # :with_attachment
  # :with_attachments
  # :at for delayed delivery time option
  # :in_test_mode BOOL. override the @use_test_mode setting
  # :tags to add tags to the email
  # :track BOOL
end