That very document states:
> reply_to - Takes one or more email addresses. These addresses will be listed
> as the default recipients when replying to your email. Sets the Reply-To:
> header.
You should be able to like so:
class Notifier < ActionMailer::Base
def signup_notification(recipient)
recipients recipient.email_address_with_name
from "[email protected]"
reply_to "[email protected]"
subject "New account information"
body :account => recipient
end
end
On Feb 23, 5:49 pm, Fernando Perez <[email protected]>
wrote:
> Hi,
>
> Users can contact me through a form that sends emails through
> ActionMailer, the problem is that I can't set "reply_to", and the "from"
> is actually set to my account on the server which sends the email, so I
> have to copy and paste the user email which is saved in the body in the
> reply of my mail client and that's painful.
>
> Has anyone been able to set the reply_to option?
>
> http://api.rubyonrails.com/classes/ActionMailer/Base.htmlis rather thin
> on instructions on how to do that? Or did they skip it on purpose?
>
> I also tried setting: headers 'reply-to' => email, 'Reply-ro' => email,
> but none worked.
>
> Best regards,
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---