RE: [PHP] Why do I keep getting a 501 mail error?

2004-08-06 Thread Nicklas Bondesson
To: [EMAIL PROTECTED] Subject: Re: [PHP] Why do I keep getting a 501 mail error? * Thus wrote Brian Dunning: Developing on a Windows server to be deployed on Linux. I get SMTP server response: 501 Bad address syntax. Here's my code: $mail_from = 'My Name [EMAIL PROTECTED]'; $mail_server

Re: [PHP] Why do I keep getting a 501 mail error?

2004-08-06 Thread Brian Dunning
Thanks very much to everyone for all the suggestions. I tried them all, and even the most minimal stripped down attempt: mail('[EMAIL PROTECTED]','Test','Test'); fails with a 501 error, Bad address syntax. This is on a Windows box. Anything else I can try? Is it possible that there is some

RE: [PHP] Why do I keep getting a 501 mail error?

2004-08-06 Thread Nicklas Bondesson
Do you know what SMTP software they are running on the mailserver? Nicke -Original Message- From: Brian Dunning [mailto:[EMAIL PROTECTED] Sent: den 6 augusti 2004 17:32 To: [EMAIL PROTECTED] Subject: Re: [PHP] Why do I keep getting a 501 mail error? Thanks very much to everyone

Re: [PHP] Why do I keep getting a 501 mail error?

2004-08-06 Thread Brian Dunning
On Aug 6, 2004, at 8:35 AM, Nicklas Bondesson wrote: Do you know what SMTP software they are running on the mailserver? Just whatever IIS uses by default on my Windows box... - Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why do I keep getting a 501 mail error? - SOLVED

2004-08-06 Thread Brian Dunning
Turns out I was doing one of these in my config file: ini_set(sendmail_from, 'First Last [EMAIL PROTECTED]'); And there's that Windows-unfriendly format again. Thanks much to all who showed me what to look for! :) :) - Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Why do I keep getting a 501 mail error?

2004-08-06 Thread Jason Wong
On Friday 06 August 2004 23:32, Brian Dunning wrote: Thanks very much to everyone for all the suggestions. I tried them all, and even the most minimal stripped down attempt: See how much easier it is to get to the root of the problem with a stripped down minimal example? mail('[EMAIL

Re: [PHP] Why do I keep getting a 501 mail error?

2004-08-06 Thread John Holmes
Brian Dunning wrote: On Aug 6, 2004, at 8:35 AM, Nicklas Bondesson wrote: Do you know what SMTP software they are running on the mailserver? Just whatever IIS uses by default on my Windows box... Sounds like it's not configured correctly. Try doing the SMTP tutorial here

[PHP] Why do I keep getting a 501 mail error?

2004-08-05 Thread Brian Dunning
Developing on a Windows server to be deployed on Linux. I get SMTP server response: 501 Bad address syntax. Here's my code: $mail_from = 'My Name [EMAIL PROTECTED]'; $mail_server = 'mail.servername.com'; // This is hosted externally ini_set(SMTP, $mail_server); ini_set(sendmail_from,

RE: [PHP] Why do I keep getting a 501 mail error?

2004-08-05 Thread Ed Lazor
keep getting a 501 mail error? Developing on a Windows server to be deployed on Linux. I get SMTP server response: 501 Bad address syntax. Here's my code: $mail_from = 'My Name [EMAIL PROTECTED]'; $mail_server = 'mail.servername.com'; // This is hosted externally ini_set(SMTP, $mail_server

Re: [PHP] Why do I keep getting a 501 mail error?

2004-08-05 Thread Jason Wong
On Friday 06 August 2004 01:05, Ed Lazor wrote: Why are you specifying the To field twice? I'd try removing the extra formatting around the email addresses for troubleshooting. I would say strip the whole thing down to the bare minimum that illustrates the problem. -- Jason Wong - Gremlins

Re: [PHP] Why do I keep getting a 501 mail error?

2004-08-05 Thread John W. Holmes
From: Brian Dunning [EMAIL PROTECTED] Developing on a Windows server to be deployed on Linux. I get SMTP server response: 501 Bad address syntax. Here's my code: $mail_from = 'My Name [EMAIL PROTECTED]'; $mail_server = 'mail.servername.com'; // This is hosted externally ini_set(SMTP,

Re: [PHP] Why do I keep getting a 501 mail error?

2004-08-05 Thread Jordi Canals
Brian Dunning wrote: Developing on a Windows server to be deployed on Linux. I get SMTP server response: 501 Bad address syntax. Here's my code: $mail_to = $first_name $last_name $email; On Windows Platform, You cannot use the TO address in the form Name address As it fails because the mail()

Re: [PHP] Why do I keep getting a 501 mail error?

2004-08-05 Thread Justin Patrin
On Fri, 06 Aug 2004 00:57:32 +0200, Jordi Canals [EMAIL PROTECTED] wrote: Brian Dunning wrote: Developing on a Windows server to be deployed on Linux. I get SMTP server response: 501 Bad address syntax. Here's my code: $mail_to = $first_name $last_name $email; On Windows Platform,

Re: [PHP] Why do I keep getting a 501 mail error?

2004-08-05 Thread Curt Zirzow
* Thus wrote Brian Dunning: Developing on a Windows server to be deployed on Linux. I get SMTP server response: 501 Bad address syntax. Here's my code: $mail_from = 'My Name [EMAIL PROTECTED]'; $mail_server = 'mail.servername.com'; // This is hosted externally ini_set(SMTP,