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. >