RE: mail() issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[snip]
The "." (period) is simply the end of my sentance in the email.
 
The "From" address is specified in the php.ini and is fully qualified.
 
If I hard code the value of $to into the mail function it works fine.
 
$user_email = user@xxxxxxxxxx
$to = user@xxxxxxxxxx
 
mail($to, $subject, $message); = PHP Warning: mail() [function.mail]: SMTP server response: 504 <br />: Recipient address rejected: need fully-qualified address
[/snip]

Try this

echo "|".$user_email."|";

You may find some whitespace that needs to be trimmed. 

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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux