class SendWithUsMailer::MailParams

Attributes

email_data[R]
email_id[R]
from[R]
to[R]

Public Instance Methods

deliver() click to toggle source

Invoke SendWithUs::Api to deliver the message. The SendWithUs module is implemented in the send_with_us gem.

IMPORTANT NOTE: SendWithUs must be configured prior to calling this method. In particular, the api_key must be set (following the guidelines in the send_with_us documentation).

# File lib/send_with_us_mailer/mail_params.rb, line 38
def deliver
  SendWithUs::Api.new.send_with(@email_id, @to, @email_data, @from)
end