|
|
 |
RE: FN-FORUM: PHP error
date posted 5th January 2006 15:27
Agreed. I had the same problem this morning. It works fine once it's
uploaded though.
-----Original Message-----
From: [EMAIL REMOVED] [EMAIL REMOVED] On Behalf Of Alain
Williams
Sent: 05 January 2006 15:47
To: FN-FORUM / [EMAIL REMOVED]
Subject: Re: FN-FORUM: PHP error
On Thu, Jan 05, 2006 at 03:40:10PM -0000, Lorna McArdle - Spinette Designs
wrote:
>
> Can anyone shed light on why I get this error from my PHP sendmail doc.
>
> Warning: mail(): SMTP server response: 554 [EMAIL REMOVED]
> Recipient address rejected: Relay access denied in
> \\nas16ent\domains\o\oxfordedition.co.uk\user\htdocs\sendmail.php on line
92
>
> Warning: Cannot modify header information - headers already sent by
(output
> started at
> \\nas16ent\domains\o\oxfordedition.co.uk\user\htdocs\sendmail.php:92) in
> \\nas16ent\domains\o\oxfordedition.co.uk\user\htdocs\sendmail.php on line
94
>
> This is the code it refers to.
>
> mail( [EMAIL REMOVED] "Contact from the web",
>
>
> $mailmsg, "From: $emailadd" );
>
> header( "Location: http://www.oxfordedition.co.uk/thankyou.htm" );
> }
> ?>
I don't think that it is an error in the php script, but the MTA that
you are speaking to does not regard you as trustworthy and so will not
forward mail on your behalf. You seem to be running on MS Windows, most
of those boxes do not run their own MTA so you will need to use one
somewhere
else. Check the SMTP setting in [mail function] in you php.ini file.
--
Alain Williams
Parliament Hill Computers Ltd.
Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT
Lecturer.
+44 (0) 787 668 0256 http://www.phcomp.co.uk/
#include
--
Freelancers, contractors earn more with Prosperity4
Call 0870 870 4414 or visit www.prosperity4.com
and benefit from Inland Revenue approved expenses today.
To advertise here: http://www.freelancers.net/advertising.html
|
 |
|