Re: mail() issue
| From: | Dan Shirah | Date: | Wed, 22 Aug 2007 12:42:41 +0000 |
| Subject: | Re: mail() issue | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-261110@lists.php.net to get a copy of this message | ||
Found the problem.
At the very end of the include file was an extra break which was being
pulled into the $user_email variable. Removed it and everything is working
great now.
Thanks so much!
On 8/22/07, Edward Kay <edward@labhut.com> wrote:
>
>
> > -----Original Message-----
> > From: Dan Shirah [mailto:mrsquash2@gmail.com]
> > Sent: 22 August 2007 13:28
> > To: Jay Blanchard
> > Cc: php-general
> > 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@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
>
> Is the mail server configured correctly? Can you manually connect to it
> and
> successfully send a message? See
> http://www.yuki-onna.co.uk/email/smtp.html
>
> Edward
>
>