email - Proper formatting of "from" in php mail() function -
i want have "from" part of php generated email company name. apparently makes spam filters sad. so, code is...
$mail->fromname = 'company name <some_email@domain.com>';
my issue gmail , aol keep returning these emails , part looks this...
from: "company name <some_email@domain.com>" <>
any thoughts "<>" @ end?
the <>
at end of "company name <some_email@domain.com>" <>
indicates address interpreted containing associated name part,with no real email address.
try generating address 'company name' <some_email@domain.com>
or some_email@domain.com (company name)
edit: possible reason problem mailer using separate fields name part , address part of header. if so:
$mail->from = "some_email@domain.com"; $mail->fromname = "company name";
should solve problem.
Comments
Post a Comment