app/models/rad_social_mailer.rb in trusty-rad-social-extension-2.2.1 vs app/models/rad_social_mailer.rb in trusty-rad-social-extension-2.2.2
- old
+ new
@@ -7,13 +7,16 @@
from_address.display_name = options[:from_name] # ex: "John Doe"
@from_name = from_address.display_name
@from_email = from_address
@message = options[:message]
+ @actual_from = ENV['RAD_SOCIAL_FROM_EMAIL']
+ @actual_from = from_address if @actual_from.nil?
mail({
to: options[:to],
- from: @from_email,
+ from: @actual_from,
+ reply_to: @from_email,
subject: options[:subject],
text: @message,
content_type: "text/html"
})
end