|
Posted by Manuel Lemos on 11/26/05 03:16
Hello,
on 11/21/2005 11:52 AM Etienne Marais said the following:
> The following problem I posted on another
> php forum probably has to do with authentication
> requirements, I do not have access to the
> server myself but I suspect the ISP knows as
> little as I do. How is this resolved on a
> Windows 2003 Server ?
>
> I have a form being filled in and processed
> by php, after which an email is sent to a
> standard address. The output includes the
> following errors:
>
> Warning: mail(): SMTP server response: 554 <john@doe.co.uk>: Recipient
> address rejected: Relay access denied in
> \\nas22ent\domains\l\doe.co.uk\user\htdocs\enrolform.php on line 108
>
> Is this simply a mail server setting, or
> can I get around this with php ?
That means that the mail server requires you to authenticate to allow
you to relay the message to the remote recipient.
The mail() function does not support authentication.
You may want to try this class instead that comes with a function named
smtp_mail(). It is compatible with mail() but lets you send messages
through an SMTP server of your choice, with support to let you specify
the user name and password to authenticate:
http://www.phpclasses.org/mimemessage
You also need this:
http://www.phpclasses.org/smtpclass
and this:
http://www.phpclasses.org/sasl
--
Regards,
Manuel Lemos
Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
Navigation:
[Reply to this message]
|