Re: Problem sending email message, from Newman.
| From: | Miguel Cruz | Date: | Tue, 26 Mar 2002 23:27:35 +0000 |
| Subject: | Re: Problem sending email message, from Newman. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-90291@lists.php.net to get a copy of this message | ||
Ah, never mind, the problem is that your From: header is invalid.
You have:
From: Philip J. Newman
which is not a valid address format. Try something like this:
From: "Philip J. Newman" <newmanpj@philipsdomain.com>
miguel
On Wed, 27 Mar 2002, Philip J. Newman wrote:
> $email = newmanpj@philipsdomain.com example
>
> ----- Original Message -----
> From: "Miguel Cruz" <mnc@stoic.net>
> To: "Philip J. Newman" <newmanpj@philipsdomain.com>
> Cc: <php-general@lists.php.net>; <sambar@sambar.ch>
> Sent: Wednesday, March 27, 2002 11:14 AM
> Subject: Re: [PHP] Problem sending email message, from Newman.
>
>
> > Can you show the contents of the variable $email ?
> >
> > miguel
> >
> > On Wed, 27 Mar 2002, Philip J. Newman wrote:
> >
> > > Below is some code that I have used to send an email Via mail. The
> message
> > > sends with the correct data, HOWEVER my mail server don't like the
> header
> > > and sends the email back to admin.
> > >
> > > ROUTER: Failure delivering mail message to recipient: pooman2@ihug.co.nz
> > > [ROUTER: Unexpected SMTP Server 'ihug.co.nz' [250] received: 550 Syntax
> > > error in 'From' header: missing or malformed local part (expected word
> or
> > > "<"): failing address is: Philip J. Newman]
> > >
> > > Can anyone help with this
> > >
> > > $msg = "Thanks, $name. Your entry had been added, Good Luck.";
> > > $msg .= "Email: $email.\n";
> > > $msg .= "Text: $address, $suburb.\n";
> > > $msg .= "Answer: $answer";
> > >
> > > $mailheaders = "From: Philip J. Newman\n";
> > > $mailheaders .= "Reply-To: newmanpj@philipsdomain.com\n\n";
> > >
> > > mail("$email", "[Newman] Conformation of entry. ", $msg,
> > > $mailheaders);
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> >
>
>
>
>
>