Re: mail() issue

From: Date: Wed, 22 Aug 2007 12:27:36 +0000
Subject: Re: mail() issue
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-261107@lists.php.net to get a copy of this message
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 On 8/22/07, Jay Blanchard <jblanchard@pocket.com> wrote: > > [snip] > PHP Warning: mail() > > [function.mail<http://develop1/credit%20card%20processing/Submit/ChildSuºÖøÑ#7ÈG›W > îúÂ > pport/function.mail>]: > SMTP server response: 504 <br />: Recipient address rejected: need > fully-qualified address. > > The value of $user_email when it is echoed out above is user@domain.com. > [/snip] > > Just a sanity check, does the e-mail address have that period at the end > of it when you echo it out? That would make the address non fully > qualified because the server is expecting a top level domain to follow. > Just for giggles check the FROM address as well, it needs a fully > qualified domain too. >

« previous php.general (#261107) next »