Thank you. You're right. Quotes are required. And they do show up in
some mail programs (like gmail when you view the message page as
opposed to the list of messages) but generally they don't show up.
Robyn
On 2/26/07, Kenneth Dombrowski <[EMAIL PROTECTED]> wrote:
Hi Robyn,
On 07-02-26 15:45 -0500, Robyn Overstreet wrote:
>
> Using double quotes in PHP doesn't seem to make a difference, but
> quoting in the string itself *does* work for sending punctuation.
> However, the quotation marks show up in the From name field, which I'd
> like to avoid if possible.
>
I'm pretty sure the quotes are required by the rfc (ex. from rfc2822):
A.1.2. Different types of mailboxes
This message includes multiple addresses in the destination fields
and also uses several different forms of addresses.
----
From: "Joe Q. Public" <[EMAIL PROTECTED]>
To: Mary Smith <[EMAIL PROTECTED]>, [EMAIL PROTECTED], Who? <[EMAIL
PROTECTED]>
Cc: <[EMAIL PROTECTED]>, "Giant; \"Big\" Box" <[EMAIL PROTECTED]>
Date: Tue, 1 Jul 2003 10:52:37 +0200
Message-ID: <[EMAIL PROTECTED]>
Hi everyone.
----
Note that the display names for Joe Q. Public and Giant; "Big" Box
needed to be enclosed in double-quotes because the former contains
the period and the latter contains both semicolon and double-quote
characters (the double-quote characters appearing as quoted-pair
construct). Conversely, the display name for Who? could appear
without them because the question mark is legal in an atom. Notice
also that [EMAIL PROTECTED] and [EMAIL PROTECTED] have no display names
associated with them at all, and [EMAIL PROTECTED] uses the simpler
address form without the angle brackets.
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php