04-24-2008, 10:01 PM
|
#1 (permalink)
|
|
is cute and cuddly
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
|
My mail server is making this noise: AAArrruuuuggggha.
Seriously. Is this something I'm doing wrong, or is my SMTP server just being a jackass?
Warning: mail() [function.mail]: SMTP server response: 550 5.5.0 <name <name@domain.com>> '@' or '.' expected after 'name' in /htdocs-ke/bin/lib/mail.class.php on line 23
Works fine when I use nothing but an email as the From: or To: header, but I can't use "Name <email@address.com>" for whatever reason.
PHP Code:
$szTo = $szUsername . " <" . $szEmail . ">";
return mail($szTo, $szSubject, $szBody, $szFrom);
No go. Looks fine to me and according to the PHP manual for the mail function, it uses that convention too. *looks at Salathe*
-m
|
|
|
|