How can I define a reply-to address different than the :from
one? Is that even possible?
Go to Gmail Settings, then Accounts, and click edit info next to the email address whose Reply-To you want to set: Then click the “Specify…” link. Enter in the address, and hit Save Changes.
The reply-to address on an email indicates where responses to that email are sent. By default, the email replies go to the email address from which the email was sent.
Two ways:
class Notifications < ActionMailer::Base default :from => 'your_app@your_domain.com', :reply_to => 'some_other_address@your_domain.com' end
Or:
class Contacts < ActionMailer::Base def new_contact mail( :to => 'somebody@some_domain.com', :from => 'your_app@your_domain.com', :reply_to => 'someone_else@some_other_domain.com') end end
Or you can mix the two approaches. I'm sure there are even more ways to do this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With