Method: MultiMail::Sender::SendGrid#initialize
- Defined in:
- lib/multi_mail/sendgrid/sender.rb
#initialize(options = {}) ⇒ SendGrid
Initializes a SendGrid outgoing email sender.
17 18 19 20 21 22 |
# File 'lib/multi_mail/sendgrid/sender.rb', line 17 def initialize( = {}) super if Hash === settings[:'x-smtpapi'] settings[:'x-smtpapi'] = JSON.dump(settings[:'x-smtpapi']) end end |