My application uses sendmail to send outgoing email. I set the address "From:" using the following format:
Fred Dibnah <fred@dibnah.com>
I also set the Reply-To and Return-Path headers using the same format.
This seems to work in the vast majority of cases, but I saw at least one instance in which this fails, namely when the part of the name of the specified string contains a period (full stop):
Fred Dibnah, Inc. <fred@dibnah.com>
This fails deep inside the TMail code (I use Ruby), but it seems like the right thing.
My question is: should I set the Return-Path and Reply-To headers using only the email address, unlike the above Name + Email format? For example.
fred@dibnah.com
Thanks.
source
share