|
|
 |
Re: FN-FORUM: PHP error
date posted 5th January 2006 15:17
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
|
 |
|