RE: [PHP] mail() issue

From: Date: Wed, 22 Aug 2007 12:33:10 +0000
Subject: RE: [PHP] mail() issue
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-261108@lists.php.net to get a copy of this message
[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@domain.com $to = user@domain.com   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.

« previous php.general (#261108) next »