Module: MailCannon::Adapter::SendgridWeb::InstanceMethods

Defined in:
lib/mailcannon/adapters/sendgrid_web.rb

Instance Method Summary collapse

Instance Method Details

#send!Object



6
7
8
9
10
11
12
13
14
15
# File 'lib/mailcannon/adapters/sendgrid_web.rb', line 6

def send!
  validate_envelope!
  if self.to.size>1
    response = send_multiple_emails
  else
    response = send_single_email
  end
  self.after_sent(successfully_sent?(response))
  return response
end

#send_bulk!Object



17
18
19
# File 'lib/mailcannon/adapters/sendgrid_web.rb', line 17

def send_bulk!
  self.send! # send! does bulk too!
end