On 06/18/2003 05:35 PM, Php wrote:
I'm fairly new to php and I'm trying to setup mail functionality from php on IIS 4.0. I keep getting this error. I have tried ever combination for the SMTP settings in the php.ini file, but nothing seems to work. I can send mail using CDONTS on this server, but using php I cannot <?php mail("[EMAIL PROTECTED]", "My Subject", "Some info") ?>
That means that you need to authenticate.
You may want to try this PHP Classes that comes with a sub-class for delivery with SMTP that lets you configure the SMTP authentication credentials.
http://www.phpclasses.org/mimemessage
You also need this class for the actual delivery:
http://www.phpclasses.org/smtpclass
BTW, you can used CDONTS in PHP under Windows servers using COM components. It is just not a very flexible way of composing messages.
--
Regards, Manuel Lemos
Free ready to use OOP components written in PHP http://www.phpclasses.org/
-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php