I'm using the mail() function to send e-mails. The first argument to the
function is the e-mail address the mail will be sent to. I understand this
should just be in the format 'address@domain ' and not '"Name"
<address@domain >' and that if I want to specify the name of the recipient as
well as the address of the recipient I should pass it as an addition header.
This works fine locally under Windows and Apache but remotely under Linux
and Apache the resultant raw message has 2 To: headers meaning the client
displays it as being sent to 2 addresses (the same address twice). Am I
doing this correctly? It seems a clumsy way of doing it, especially as
SpamAssassin marks down a message with only an email address in the two
header.
Thanks,
Geoff
function is the e-mail address the mail will be sent to. I understand this
should just be in the format 'address@domain ' and not '"Name"
<address@domain >' and that if I want to specify the name of the recipient as
well as the address of the recipient I should pass it as an addition header.
This works fine locally under Windows and Apache but remotely under Linux
and Apache the resultant raw message has 2 To: headers meaning the client
displays it as being sent to 2 addresses (the same address twice). Am I
doing this correctly? It seems a clumsy way of doing it, especially as
SpamAssassin marks down a message with only an email address in the two
header.
Thanks,
Geoff
Comment