501 Syntax error in recipient address
Page: 1, 2
No, the exchange server is running on a separate box in the domain. No mail server is running on the box on which XAMPP is installed. The PHP.INI file shows the following:
[mail function]
; For Win32 only.
SMTP = sumatraii
smtp_port = 25
; For Win32 only.
sendmail_from = bsamson@<DOMAIN>.com
[mail function]
; For Win32 only.
SMTP = sumatraii
smtp_port = 25
; For Win32 only.
sendmail_from = bsamson@<DOMAIN>.com
Ok, that definitely made some progress; thanks gog! A fully qualified domain name should be used in PHP.INI. The From and BCC addresses look to be correctly identified.
However, the To: field still has nothing in it, so the same "501 5.5.4 Invalid Address" error is showing up. This is where I'll play the stupid-user card again, as I'm not sure how to debug what $message->getTo()->toString() is doing. Yet.
However, the To: field still has nothing in it, so the same "501 5.5.4 Invalid Address" error is showing up. This is where I'll play the stupid-user card again, as I'm not sure how to debug what $message->getTo()->toString() is doing. Yet.
mixrecords
on Jul 11. 2006. 4:15 pm
I am having the same SMTP 501 issue as well. Running WAMP on Windows 2000 Server and all that jazz. Works great otherwise... Tried changing php.ini with different SMTP servers, no luck. IIS not running from what I can see.
Previous install with MAMP on my G5 worked awesome, no mail issues at all.
Thanks in advance!
Previous install with MAMP on my G5 worked awesome, no mail issues at all.
Thanks in advance!
That very well could be. To test the theory, how would you suggest I modify the code to include the "To" address?
I've got a fix, but it's not from the To: field afterall.
Line 87 of /environment/library/simplemail/MailAddress.class.php uses the display name followed by the email address in the format <some@email.com>. I modified it to use the email address without a display name or the left/right delimiters (as well as the "To:" line) and the system's processing emails without issue now.
Since I'm using this tool internally, Exchange always resolves the email address to a display name in the address book, so losing that info won't be a problem for me. However, there must be SOME way to pass display name into Exchange in a syntactically correct format.
Thanks to everyone for your help.
Line 87 of /environment/library/simplemail/MailAddress.class.php uses the display name followed by the email address in the format <some@email.com>. I modified it to use the email address without a display name or the left/right delimiters (as well as the "To:" line) and the system's processing emails without issue now.
Since I'm using this tool internally, Exchange always resolves the email address to a display name in the address book, so losing that info won't be a problem for me. However, there must be SOME way to pass display name into Exchange in a syntactically correct format.
Thanks to everyone for your help.
Topic is locked. If you have something important to say about issues discussed on this page please write at hi@a51dev.com.



