Last active
December 20, 2015 01:59
-
-
Save ugisozols/6053412 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# app/decorators/mailers/refinery/inquiries/inquiry_mailer_decorator.rb | |
Refinery::Inquiries::InquiryMailer.class_eval do | |
def confirmation(inquiry, request) | |
@inquiry = inquiry | |
mail :subject => Refinery::Inquiries::Setting.confirmation_subject(Globalize.locale), | |
:to => inquiry.email, | |
:from => "my_custom_from_name@something.com", | |
:reply_to => Refinery::Inquiries::Setting.notification_recipients.split(',').first | |
end | |
def notification(inquiry, request) | |
@inquiry = inquiry | |
mail :subject => Refinery::Inquiries::Setting.notification_subject, | |
:to => Refinery::Inquiries::Setting.notification_recipients, | |
:from => "my_custom_from_name@something.com" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you!