RE: [PHP] mail() issue
| From: | Bastien Koert | Date: | Wed, 22 Aug 2007 17:57:18 +0000 |
| Subject: | RE: [PHP] mail() issue | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-261122@lists.php.net to get a copy of this message | ||
try doing a trim($email) to remove any whitespace, just in case
bastien> Date: Wed, 22 Aug 2007 08:27:36 -0400> From: mrsquash2@gmail.com> To:
bastien> jblanchard@pocket.com> CC: php-general@lists.php.net> Subject: Re: [PHP] mail() issue> >
bastien> The "." (period) is simply the end of my sentance in the email.> > The
bastien> "From" address is specified in the php.ini and is fully qualified.> > If I hard code
bastien> the value of $to into the mail function it works fine.> > $user_email = user@domain.com>
bastien> $to = user@domain.com> > mail($to, $subject, $message); = PHP Warning: mail() [function.mail]:
bastien> SMTP> server response: 504 <br />: Recipient address rejected: need> fully-qualified
bastien> address> > > On 8/22/07, Jay Blanchard <jblanchard@pocket.com> wrote:> >>
bastien> > [snip]> > PHP Warning: mail()> >
bastien> [function.mail<http://develop1/credit%20card%20processing/Submit/ChildSu²˜T›÷Ä
bastien> ‚#êÇŠ Lc> > pport/function.mail>]:> > SMTP server response: 504 <br />:
bastien> Recipient address rejected: need> > fully-qualified address.> >> > The value of
bastien> $user_email when it is echoed out above is user@domain.com.> > [/snip]> >> > Just
bastien> a sanity check, does the e-mail address have that period at the end> > of it when you echo it
bastien> out? That would make the address non fully> > qualified because the server is expecting a top
bastien> level domain to follow.> > Just for giggles check the FROM address as well, it needs a
bastien> fully> > qualified domain too.> >
_________________________________________________________________
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE