Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-24 Thread Christoph Grottolo

Sorry. The link below is broken. Try one of the mirrors on
www.phpclasses.org instead.

Christoph

Christoph Grottolo wrote:
 You could use the mail class by Manuel Lemos on php.upperdesign.com
 if you need cc/bcc and attachments. I've been using it for quite some
 time now with good results.

 Christoph



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




Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-23 Thread Christoph Grottolo

You could use the mail class by Manuel Lemos on php.upperdesign.com if you
need cc/bcc and attachments. I've been using it for quite some time now with
good results.

Christoph

Lance wrote:
 ok. thanks for the info. guess i have to wait till it hit stable
 version before deploying it on live server. for now, it's byebye to
 CC/BCC/Attachments.



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




Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-22 Thread Christoph Grottolo

You should download php4.3.0 dev. The mail enhancements have not been merged
into the 4.2 branch. Sorry for not having been exact in my last posting.

Christoph

Lance wrote:
 i downloaded php4.2.2dev and tried my codes on it. still giving me the
 same problem.
 Try a recent dev-snapshot from snaps.php.net/win32. The mail
 function has been reworked.

 Christoph


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




Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-22 Thread Lance

cool! 4.3.0dev work like a charm! but is it safe for deployment server?

--lance

Christoph Grottolo wrote:
 You should download php4.3.0 dev. The mail enhancements have not been merged
 into the 4.2 branch. Sorry for not having been exact in my last posting.
 
 Christoph
 
 Lance wrote:
 
i downloaded php4.2.2dev and tried my codes on it. still giving me the
same problem.

Try a recent dev-snapshot from snaps.php.net/win32. The mail
function has been reworked.

Christoph

 


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




Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-22 Thread Christoph Grottolo

Lance wrote:
 cool! 4.3.0dev work like a charm! but is it safe for deployment
 server?


No. It's a dev version which has not been going through qa. (We're using it
on an intranet and didn't have any probs until now.)

Christoph


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




Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-22 Thread Lance

ok. thanks for the info. guess i have to wait till it hit stable version 
before deploying it on live server. for now, it's byebye to 
CC/BCC/Attachments.

thanks again.

lance

Christoph Grottolo wrote:
 Lance wrote:
 
cool! 4.3.0dev work like a charm! but is it safe for deployment
server?

 
 
 No. It's a dev version which has not been going through qa. (We're using it
 on an intranet and didn't have any probs until now.)
 
 Christoph
 


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




[PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-21 Thread Lance

hi,

i am facing the above issue. i set the headers up for the mail(). tried 
submitting the email. it worked great on linux server. but when i try to 
run it on a win2k. i just get:

Warning: Server Error in blahblah.php on line blahblah

my piece of code:
$headers  = MIME-Version: 1.0\r\n;
$headers .= Content-type: text/html; charset=iso-8859-1\r\n;
$headers .= From: [EMAIL PROTECTED]\r\n;
$headers .= Cc: [EMAIL PROTECTED]\r\n;
$to = [EMAIL PROTECTED];
$subject = my subject;
$message = my message;
mail($to, $subject, $message, $headers);

any idea whats wrong with the above code?

the log file shows:
#Fields: time c-ip cs-method cs-uri-stem sc-status
12:23:30 127.0.0.1 HELO - 250
12:23:30 127.0.0.1 MAIL - 250
12:23:30 127.0.0.1 RCPT - 250
12:23:30 127.0.0.1 RCPT - 501
12:23:30 127.0.0.1 QUIT - 0

it appears that 501 = Not Implemented on IIS5. but i am not sure on that.

thanks  regards,
lance


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




Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-21 Thread Stuart Dallas

On Friday, June 21, 2002, 3:14:17 PM, you wrote:
 i am facing the above issue. i set the headers up for the mail(). tried
 submitting the email. it worked great on linux server. but when i try to 
 run it on a win2k. i just get:

 Warning: Server Error in blahblah.php on line blahblah

 my piece of code:
 $headers  = MIME-Version: 1.0\r\n;
 $headers .= Content-type: text/html; charset=iso-8859-1\r\n;
 $headers .= From: [EMAIL PROTECTED]\r\n;
 $headers .= Cc: [EMAIL PROTECTED]\r\n;
 $to = [EMAIL PROTECTED];
 $subject = my subject;
 $message = my message;
 mail($to, $subject, $message, $headers);

 any idea whats wrong with the above code?

 the log file shows:
 #Fields: time c-ip cs-method cs-uri-stem sc-status
 12:23:30 127.0.0.1 HELO - 250
 12:23:30 127.0.0.1 MAIL - 250
 12:23:30 127.0.0.1 RCPT - 250
 12:23:30 127.0.0.1 RCPT - 501
 12:23:30 127.0.0.1 QUIT - 0

 it appears that 501 = Not Implemented on IIS5. but i am not sure on that.

That 501 is an SMTP error code, not an IIS error. A 501 error in SMTP
means Syntax error in parameters or arguments. Looking at your code, the only
thing I can think is that it's complaining because both addresses are the same.
Try changing the CC address to something different from the primary recipient.

-- 
Stuart


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




Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-21 Thread Lance

i tried that. using different email addresses. all of them are valid. 
still getting the same error. however, when i change the Cc to cc, 
no error was thrown. but only the To: will receive the email. the Cc: 
never get the mail.

any other thoughts on that?

Stuart Dallas wrote:
 
 That 501 is an SMTP error code, not an IIS error. A 501 error in SMTP
 means Syntax error in parameters or arguments. Looking at your code, the only
 thing I can think is that it's complaining because both addresses are the same.
 Try changing the CC address to something different from the primary recipient.
 


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




Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-21 Thread Stuart Dallas

On Friday, June 21, 2002, 4:01:44 PM, Lance wrote:
 i tried that. using different email addresses. all of them are valid.
 still getting the same error. however, when i change the Cc to cc, 
 no error was thrown. but only the To: will receive the email. the Cc: 
 never get the mail.

 any other thoughts on that?

Can you get a transcript of the SMTP session, specifically the line PHP sends
to the SMTP server when it gets the 501 reply?

-- 
Stuart


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




Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-21 Thread Lowell Allen

 From: Lance [EMAIL PROTECTED]
 
 i tried that. using different email addresses. all of them are valid.
 still getting the same error. however, when i change the Cc to cc,
 no error was thrown. but only the To: will receive the email. the Cc:
 never get the mail.
 
 any other thoughts on that?
 
You need to include cc: and Bcc: addresses in the first parameter and repeat
in the headers, for example:

mail('[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]',
'subject', 'message',
To: Receiver [EMAIL PROTECTED]\n .
From: Sender [EMAIL PROTECTED]\n .
cc: Courtesy [EMAIL PROTECTED]\n .
Bcc: Blind [EMAIL PROTECTED]\n);

Cc does not work, but cc or CC does, and on Windows servers the Bcc:
header is not removed when sending, so recipients can see Bcc: receivers by
examining the headers. This is from Kevin Yank's Advanced email in PHP on
WebmasterBase.com.

--
Lowell Allen


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




Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-21 Thread Lance

yes, and it did show me whats wrong. but i have no idea why is that the 
case...

127.0.0.1 SMTPSVC1 RCPT - +TO:[EMAIL PROTECTED] 250
127.0.0.1 SMTPSVC1 RCPT - +TO:Cc:[EMAIL PROTECTED] 501

i don't understand why the Cc is been treated as a recipient in TO:


Stuart Dallas wrote:
 On Friday, June 21, 2002, 4:01:44 PM, Lance wrote:
 
i tried that. using different email addresses. all of them are valid.
still getting the same error. however, when i change the Cc to cc, 
no error was thrown. but only the To: will receive the email. the Cc: 
never get the mail.
 
 
any other thoughts on that?
 
 
 Can you get a transcript of the SMTP session, specifically the line PHP sends
 to the SMTP server when it gets the 501 reply?
 


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




Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-21 Thread Lance

hm... but isn't it weird to include the cc: recipient within to: and 
then specifying them under cc: again?

cos wouldn't it be more straight forward just to simply include all the 
recipient in cc: to to: and omit the cc: list.

and specifying the recipient that is suppose to be in Bcc: under To:, i 
believe its already telling everybody who will be receiving that email. 
there is no more reason to stick their email in Bcc: list. am i right to 
say that?

Lowell Allen wrote:
 You need to include cc: and Bcc: addresses in the first parameter and repeat
 in the headers, for example:
 
 mail('[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]',
 'subject', 'message',
 To: Receiver [EMAIL PROTECTED]\n .
 From: Sender [EMAIL PROTECTED]\n .
 cc: Courtesy [EMAIL PROTECTED]\n .
 Bcc: Blind [EMAIL PROTECTED]\n);
 
 Cc does not work, but cc or CC does, and on Windows servers the Bcc:
 header is not removed when sending, so recipients can see Bcc: receivers by
 examining the headers. This is from Kevin Yank's Advanced email in PHP on
 WebmasterBase.com.
 
 --
 Lowell Allen
 


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




Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-21 Thread Stuart Dallas

On Friday, June 21, 2002, 4:40:00 PM, Lance wrote:
 yes, and it did show me whats wrong. but i have no idea why is that the
 case...

 127.0.0.1 SMTPSVC1 RCPT - +TO:[EMAIL PROTECTED] 250
 127.0.0.1 SMTPSVC1 RCPT - +TO:Cc:[EMAIL PROTECTED] 501

 i don't understand why the Cc is been treated as a recipient in TO:

As far as the SMTP envelope is concerned, the To:, Cc: and Bcc: recipients are
equal. It looks like a bug in PHP to me, but I don't have time to delve into
the code to confirm it. It should be stripping the Cc: and the space (which
shows in your log as a +) from the Cc: line. The SMTP server is complaining
because the address contains invalid characters.

-- 
Stuart


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




Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-21 Thread Lance

yes, the + is a whitespace. hm... a bug, you could be right on that.

i dont have a copy of php4.2.1 on linux to test and see if it is just 
windows2k that is giving the problem, or php4.2.1 is the main culprit. 
but i did get the same piece of code to run on php4.0.6 on linux. it 
runs smoothing in there.

btw, i forgot to mention that i am running php4.2.1 on win2k sp2 server.

Stuart Dallas wrote:
 As far as the SMTP envelope is concerned, the To:, Cc: and Bcc: recipients are
 equal. It looks like a bug in PHP to me, but I don't have time to delve into
 the code to confirm it. It should be stripping the Cc: and the space (which
 shows in your log as a +) from the Cc: line. The SMTP server is complaining
 because the address contains invalid characters.
 


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




Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-21 Thread Christoph Grottolo

Try a recent dev-snapshot from snaps.php.net/win32. The mail function has
been reworked.

Christoph


Lance wrote:
 yes, the + is a whitespace. hm... a bug, you could be right on that.

 i dont have a copy of php4.2.1 on linux to test and see if it is just
 windows2k that is giving the problem, or php4.2.1 is the main culprit.
 but i did get the same piece of code to run on php4.0.6 on linux. it
 runs smoothing in there.

 btw, i forgot to mention that i am running php4.2.1 on win2k sp2
 server.

 Stuart Dallas wrote:
 As far as the SMTP envelope is concerned, the To:, Cc: and Bcc:
recipients are
 equal. It looks like a bug in PHP to me, but I don't have time to
 delve into the code to confirm it. It should be stripping the Cc: and the
space (which
 shows in your log as a +) from the Cc: line. The SMTP server is
 complaining because the address contains invalid characters.


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




Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-21 Thread Lance

i downloaded php4.2.2dev and tried my codes on it. still giving me the 
same problem.

Cc: is not been parsed correctly. so i changed to cc: and CC:
no errors thrown out this time. however, only the recipient specified in 
To: managed to receive the email. the one specified under CC: never gets it.

i looked at the smtp log file and i can only find the To: been executed. 
   no CC: was shown on the log file. seems that php never send the 
CC: list to the smtp server.

Christoph Grottolo wrote:
 Try a recent dev-snapshot from snaps.php.net/win32. The mail function has
 been reworked.
 
 Christoph
 


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