[PHP] Re: using Cc: with mail()

2004-07-14 Thread Richard Davey
Amanda Hemmerich wrote:
Ok, I am trying to fix a bug on a site I didn't write, and I looked for
examples on www.php.net and couldn't find what I needed.
Here is the line of code in question:
mail($email, XXX - Conference Registration Confirmation, $message,
From: [EMAIL PROTECTED] . Cc:[EMAIL PROTECTED];
[EMAIL PROTECTED]);
I would have thought it needs a space after Cc: and before the email 
address. Look at the example code here:

http://uk.php.net/manual/en/function.mail.php
--
http://www.launchcode.co.uk - PHP Development Services
I am not young enough to know everything. - Oscar Wilde
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: using Cc: with mail()

2004-07-14 Thread Manuel Lemos
Hello,
On 07/14/2004 12:55 PM, Amanda Hemmerich wrote:
Ok, I am trying to fix a bug on a site I didn't write, and I looked for
examples on www.php.net and couldn't find what I needed.
Here is the line of code in question:
mail($email, XXX - Conference Registration Confirmation, $message,
From: [EMAIL PROTECTED] . Cc:[EMAIL PROTECTED];
[EMAIL PROTECTED]);
The Cc isn't working, and it looks strange to me.  I want to find an
example of mail() using Cc: so I can see if it's using the correct syntax
and everything.  Plus I want to change everything to variables, but I can
do that once it is working correctly.
This looks like a bug of the mail() function. Have you tried separating 
the  recipients in Cc: with , instead of ; and also add a space between 
Cc: and the first address?

--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: using Cc: with mail()

2004-07-14 Thread Curt Zirzow
* Thus wrote Manuel Lemos:
 Hello,
 
 On 07/14/2004 12:55 PM, Amanda Hemmerich wrote:
 Ok, I am trying to fix a bug on a site I didn't write, and I looked for
 examples on www.php.net and couldn't find what I needed.
 
 Here is the line of code in question:
 
 mail($email, XXX - Conference Registration Confirmation, $message,
 From: [EMAIL PROTECTED] . Cc:[EMAIL PROTECTED];
 [EMAIL PROTECTED]);
 
 The Cc isn't working, and it looks strange to me.  I want to find an
 example of mail() using Cc: so I can see if it's using the correct syntax
 and everything.  Plus I want to change everything to variables, but I can
 do that once it is working correctly.
 
 This looks like a bug of the mail() function. Have you tried separating 
 the  recipients in Cc: with , instead of ; and also add a space between 
 Cc: and the first address?

This is *not* a bug of the mail() function, please change your
template for these replied messages.

';' is not a proper seperator for addresses. see rfc2822

Curt
-- 
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about.  No, sir.  Our model is the trapezoid!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: using Cc: with mail()

2004-07-14 Thread Manuel Lemos
Hello,
On 07/14/2004 10:02 PM, Curt Zirzow wrote:
Ok, I am trying to fix a bug on a site I didn't write, and I looked for
examples on www.php.net and couldn't find what I needed.
Here is the line of code in question:
mail($email, XXX - Conference Registration Confirmation, $message,
From: [EMAIL PROTECTED] . Cc:[EMAIL PROTECTED];
[EMAIL PROTECTED]);
The Cc isn't working, and it looks strange to me.  I want to find an
example of mail() using Cc: so I can see if it's using the correct syntax
and everything.  Plus I want to change everything to variables, but I can
do that once it is working correctly.
This looks like a bug of the mail() function. Have you tried separating 
the  recipients in Cc: with , instead of ; and also add a space between 
Cc: and the first address?

This is *not* a bug of the mail() function, please change your
template for these replied messages.
';' is not a proper seperator for addresses. see rfc2822
I did not say that is the bug of the mail() function. In case you are 
not aware, the mail function has many different bugs depending on the 
PHP version and the system it is used in.

--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php