RE: mail() issue

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

 



try doing a trim($email) to remove any whitespace, just in case
 
bastien> Date: Wed, 22 Aug 2007 08:27:36 -0400> From: mrsquash2@xxxxxxxxx> To: jblanchard@xxxxxxxxxx> CC: php-general@xxxxxxxxxxxxx> Subject: Re: [PHP] mail() issue> > 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> > > On 8/22/07, Jay Blanchard <jblanchard@xxxxxxxxxx> wrote:> >> > [snip]> > PHP Warning: mail()> > [function.mail<http://develop1/credit%20card%20processing/Submit/ChildSu> > 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@xxxxxxxxxxx> > [/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.> >
_________________________________________________________________
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE

[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