Class: ContactMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- ContactMailer
- Defined in:
- app/mailer/contact_mailer.rb
Instance Method Summary collapse
-
#message_email(message) ⇒ Object
Mails a message to the topic recipients list (internal).
-
#message_received_email(message) ⇒ Object
Mails a message to the customer, acknowledging the contact.
-
#response_email(message) ⇒ Object
Mails a response to the customer.
Instance Method Details
#message_email(message) ⇒ Object
Mails a message to the topic recipients list (internal)
5 6 7 8 9 |
# File 'app/mailer/contact_mailer.rb', line 5 def () subject = "#{Spree::Config[:site_name]} - #{t('message_from')} #{.email}" @message = mail(:to => .conversation.topic.email, :subject => subject, :reply_to => .email) end |
#message_received_email(message) ⇒ Object
Mails a message to the customer, acknowledging the contact
12 13 14 |
# File 'app/mailer/contact_mailer.rb', line 12 def () mail(:to => .conversation.contacts.first.email, :subject => Spree::Config[:auto_response_email_subject], :reply_to => Spree::Config[:auto_response_email_reply_to]) end |
#response_email(message) ⇒ Object
Mails a response to the customer
17 18 19 20 21 |
# File 'app/mailer/contact_mailer.rb', line 17 def response_email() subject = "#{Spree::Config[:site_name]} - #{.conversation.topic.name}" @message = mail(:to => .conversation.contacts.first.email, :subject => subject, :reply_to => Spree::Config[:auto_response_email_reply_to]) end |