Unable to set the replay-to in ActionMailer

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?

Peak Obsession is 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,

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 P. [email protected]

Jeff Emminger wrote:

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.

As I said I can’t make it work, the email address used to connect to my
smtp server constantly over-writes or takes precedence over the reply_to
option. I tried setting the headers too, but still no luck.

Ah - what smtp server are you using

On Feb 24, 11:26 am, Fernando P. [email protected]

I use Citadel (www.citadel.org).

I would check with them to see why they are overwriting the Reply-to
header.

Jeff Emminger wrote:

I use Citadel (www.citadel.org).

I would check with them to see why they are overwriting the Reply-to
header.

Thanks for putting me on the correct track, I have been able to solve my
problem. Citadel was not formerly allowing me to set the reply_to and
from headers.

Jeff Emminger wrote:

Ah - what smtp server are you using

On Feb 24, 11:26�am, Fernando P. [email protected]

I use Citadel (www.citadel.org).