>> The fourth argument of the mail() function allows the programmer to define
>> additional mail headers. These can be anything, including additional To:,
>> CC:, and BCC: fields. The variables $name and $email need to be carefully 
>> screened to ensure that it is not possible to add something like:
>> 
>> "[EMAIL PROTECTED]: [EMAIL PROTECTED]"

--- Bob <[EMAIL PROTECTED]> wrote:
> I knew that extra headers could be added to the To: variable, but didn't know
> they could be used in the Subject (though I can't make it do that with a test
> program).
> 
> I'd heard that using "real name" <email> is unreliable, so I'll drop that.
> 
> Just as a matter of interest, what would happen if the "real name" <email>
> format was used. Would it still send the email?
> 
> Regards, Bob Exton.

Another poster was referring to the subject field.  I referred to the headers
argument, the fourth (and optional fifth) argument.

If the mail server (MTA) doesn't like your email addressing format, it simply
won't send the message.  If it gets through, it may fail at the recipient's
server.

The From: address is not typically processed by the mail servers.  For this
reason, the email client program (MUA) being able to process the real <email>
format is more important.  It is a legal addressing format.  My suggestion is
to not use it in the To: address (and perhaps not the CC: and BCC:).

James

Reply via email to