Should I use the Reply-To header when sending emails as a service to others?
Asked Answered
M

5

146

Suppose we have an application that acts as a middleman, allowing Company A to send reports to their customers.

Company A → Company B (me) → Company A's customers

After getting the report we send email notifications to the recipients, but they necessarily originate from our company notifications email address, e.g.

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

Now, customers tend to reply to those email notifications, wanting them to go back to whoever sent the report at Company A. Instead, they end up back at our address, [email protected].

A simple solution may be to change the Reply-To header to the relevant Company A address on the notifications we send, e.g.

[email protected][email protected] [Reply-To: [email protected]] → [email protected]

But my main concerns are:

  • The complete discrepancy in email address and domain between the From and Reply-To fields might make spam or phishing filters more eager to flag the emails.
  • Not all email clients may respect the Reply-To field when people actually click "Reply", and just use From instead. A lesser concern, unless widespread.

Are these concerns founded at all? Or are there other concerns I should have?

Mourant answered 18/1, 2011 at 19:54 Comment(0)
L
110

You may want to consider placing the customer's name in the From header and your address in the Sender header:

From: Company A <[email protected]>
Sender: [email protected]

Most mailers will render this as "From [email protected] on behalf of Company A", which is accurate. And then a Reply-To of Company A's address won't seem out of sorts.

From RFC 5322:

The "From:" field specifies the author(s) of the message, that is, the mailbox(es) of the person(s) or system(s) responsible for the writing of the message. The "Sender:" field specifies the mailbox of the agent responsible for the actual transmission of the message. For example, if a secretary were to send a message for another person, the mailbox of the secretary would appear in the "Sender:" field and the mailbox of the actual author would appear in the "From:" field.

Lossa answered 18/1, 2011 at 20:1 Comment(3)
I don't really want my owner answer upvoted, but worth mentioning is this useful question and answer, which basically confirms dkarp's answer too: #2232397Mourant
If it's for circularization it won't work @a and @b are different domains, most servers don't allow to send in behalf of someone from another domain. B will have to forward it, but you can always add a hidden multipart. Everybody knows how to forward to another address.Eviscerate
Any updates from 2018 on deliverability when using the From field in this way?Strong
B
185

I tested dkarp's solution with gmail and it was filtered to spam. Use the Reply-To header instead (or in addition, although gmail apparently doesn't need it). Here's how linkedin does it:

Sender: [email protected]
From: John Doe via LinkedIn <[email protected]>
Reply-To: John Doe <[email protected]>
To: My Name <[email protected]>

Once I switched to this format, gmail is no longer filtering my messages as spam.

Brigettebrigg answered 28/1, 2013 at 3:27 Comment(7)
Is [email protected] just a generic catch-all address, or should it actually read [email protected] in your example?Rival
@Rival No, only John Doe and My Name are edited for my example. "Member" is unchanged.Brigettebrigg
This is the method we've used. However, we're now having problems with a few servers (...ehmm.. AOL) bouncing messages, stating they don't comply with their policy. The only explanation we've received is that the reply-to header and from header have different domains, even though this seems to be the exact intent of having two different headers. It's starting to get really frustrating to rely on email for B2B communications on multi-tenant apps any more.Nuno
@BrianH: AOL and Yahoo apparently now have agressive DMARC validation. This has caused me problems with the 'From:' address to AOL. emailonacid.com/blog/details/C4/….Harrison
The downside of this approach is that the recipient's address book (in many e-mail clients) now contains "John Doe via LinkedIn <[email protected]>". And when an unknowing recipient wants to contact John Doe again, this address pops up when writing his name in the To field of a new message (thus: "via LinkedIn" is of significant importance from a UX side).Hothead
Updated link for the blog post @Harrison linked to: emailonacid.com/blog/article/industry-news/… ... it does go into some depth on the aol/yahoo.com issues.Arly
As a related note, it looks like sending an email with the suggested header through Gmail will create a new entry X-Google-Original-From and place the From there, then replace From with the Sender.Oswald
L
110

You may want to consider placing the customer's name in the From header and your address in the Sender header:

From: Company A <[email protected]>
Sender: [email protected]

Most mailers will render this as "From [email protected] on behalf of Company A", which is accurate. And then a Reply-To of Company A's address won't seem out of sorts.

From RFC 5322:

The "From:" field specifies the author(s) of the message, that is, the mailbox(es) of the person(s) or system(s) responsible for the writing of the message. The "Sender:" field specifies the mailbox of the agent responsible for the actual transmission of the message. For example, if a secretary were to send a message for another person, the mailbox of the secretary would appear in the "Sender:" field and the mailbox of the actual author would appear in the "From:" field.

Lossa answered 18/1, 2011 at 20:1 Comment(3)
I don't really want my owner answer upvoted, but worth mentioning is this useful question and answer, which basically confirms dkarp's answer too: #2232397Mourant
If it's for circularization it won't work @a and @b are different domains, most servers don't allow to send in behalf of someone from another domain. B will have to forward it, but you can always add a hidden multipart. Everybody knows how to forward to another address.Eviscerate
Any updates from 2018 on deliverability when using the From field in this way?Strong
M
3

I was looking into this recently, my answer is same as others, however, I believe its definitions are clearer to a layman:

  1. From should be described as the author of the message
  2. Sender should be described as the transmitter of the message
  3. Reply-To should not be confused with 1 and 2, it simply means where the receipient should write to if they choose to respond

Thus in some clients (e.g. Outlook 2003), you will see

From: Sender on behalf of From

Maine answered 1/4, 2022 at 4:38 Comment(0)
P
0

After reading all of this, I might just embed a hyperlink in the email body like this:

To reply to this email, click here <a href="mailto:...">[email protected]</a>

Pulpit answered 20/10, 2020 at 15:44 Comment(0)
D
-4

Here is worked for me:

Subject: SomeSubject
From:Company B (me)
Reply-to:Company A
To:Company A's customers
Diannediannne answered 23/4, 2013 at 21:23 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.