17

I have following settings in my FeedbackMailer.

def notification(feedback)

  from       "[email protected]"
  subject    "Some feedback"
  recipients "[email protected]"
  reply_to   feedback.creator.email
  body({ :feedback => feedback })
  content_type "text/html"
end

I am using [email protected] account to send emails for this application. The emails are delivered perfectly. And when I check the details of the email after receiving it, I see following:

from     "[email protected]"
reply-to "[email protected]"
to       "[email protected]"

Now when I press on the reply button in the gmail interface, the to field should now have the "[email protected]" but it is having "[email protected]". Am I doing something wrong or gmail is?

4
  • 1
    I have the exact same question. I am confused that Google Mail seems to support neither the From-field (it uses the user_name from the SMTP settings instead) nor the Reply-To header.
    – Soleone
    Commented Jan 28, 2010 at 23:46
  • 2
    I asked the same question on google help centre. This is what I got: google.com/support/forum/p/gmail/…
    – Waseem
    Commented Feb 4, 2010 at 3:56
  • Is this Gmail in the web UI or Gmail in iGoogle form? They handle Reply-To differently.
    – Bob Aman
    Commented May 11, 2010 at 23:37
  • This is Gmail in web UI.
    – Waseem
    Commented May 12, 2010 at 6:58

3 Answers 3

17

As the thread Waseem pointed out in a comment indicated.

Gmail ignores the reply-to when the From is one of your configured send-as addresses in gmail. I don't know why.

I took this as a hint and replaced the From email field by the [email protected] and added the same [email protected] as a Reply-to address. Gmail now uses the Reply-to field correctly.

2
  • 3
    I do not recommend using your customer's email as the From email as it will receive a Phishing notice from Gmail and other email clients. Use something like "[email protected]" for the From and the customer's email as the Reply-to.
    – NexusRex
    Commented Nov 30, 2012 at 14:15
  • 1
    I just tested the proposed answer here (replacing both, from and reply-to fields to be [email protected]) and it didn't work: The reply-to field was indeed [email protected] but when you hit reply in Gmail's web interface it completely ignores it and goes with the from, which they force on their end. It will probably work on a different email client but definitely not on Gmails's web UI. Annoying.
    – Icarus
    Commented Mar 26, 2013 at 18:27
1

You should check the raw headers of the email instead of just looking on the details, as it is possible that other header affecting the reply function were set by your email server - Sender header, for example. You can see the raw email code using "Show original" function, under the arrow icon in the top-right corner.

2
  • Please post comments as comment, not as answer :) Check the 'add comment' link below the question.
    – BalusC
    Commented Dec 24, 2009 at 12:29
  • 1
    @BalusC: You need 50 reputation to comment on other people's questions. Commented Dec 24, 2009 at 15:44
0

There is a feature in gmail itself to allow you to change the reply to address.

I can't figure out a way to dynamically change the reply to address, but here's how you can do it if you need to send email from several addresses (such as shipping, orders, feedback) but have it reply to a separate account.

Here's how I have it set it up.

Email address ($50/year) :

 [email protected]          (I use this account to send from in code)
 [email protected]    (customer service logs into this account)

Aliases (free) :

 [email protected]
 [email protected]
 [email protected]
 [email protected]

All these aliases are configured to send mail to [email protected] and they are put into labels there via filter rules.

I send out from shipping, orders, feedback but want any replies to come to customerservice.

Here's how I set it up :

  • Log into gmail as automated - must be logged in directly as the user you're sending from
  • Click the accounts tab
  • Add each alias you want to send from with the Add another email address you own feature
  • Log in to customerservice and approve all the requests that should have been sent to each alias.
  • Log back in as automated and click edit info next to each email
  • Here you can click Specify a different "reply-to" address and enter [email protected] as the reply to address.

I have slightly more complex reasons that I won't go into here why I have things set up like this - but if you want to change the 'reply-to' address this is the only way I've found to do it. Aliases allow you to send from multiple addresses and set reply-to to whatever you want. unfortunately though I cannot find a way to do this in code

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.