Class: Msg::MsgMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- Msg::MsgMailer
- Defined in:
- app/mailers/msg/msg_mailer.rb
Instance Method Summary collapse
-
#message_in_envelope(envelope) ⇒ Object
we send all messages through SES and use SNS to notify of bounces, so all the return-path and VERP and other gubbins that we would normally need can be omitted.
Instance Method Details
#message_in_envelope(envelope) ⇒ Object
we send all messages through SES and use SNS to notify of bounces, so all the return-path and VERP and other gubbins that we would normally need can be omitted
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'app/mailers/msg/msg_mailer.rb', line 9 def (envelope) headers['Message-ID'] = envelope.email_id @envelope = envelope @message = envelope. @receiver = envelope.receiver @contents = envelope.contents mail({ :to => %{"#{@receiver.name}" <#{@receiver.email}>}, :from => envelope.from_address, :subject => envelope.subject }) end |