Hello,

on 09/06/2007 07:42 AM Diana Castillo said the following:
> 
> 
>     when I try to send mail using this code:
> 
>     mail("[EMAIL PROTECTED]","TEST MAIL","TESTING MAIL");
> 
>     I get this error:
> 
> 
>     Warning: mail() [function.mail]: SMTP server response: 554 
>     <[EMAIL PROTECTED]>: Recipient address rejected: Access denied in 
>     C:\Inetpub\wwwroot\intranet\test.php on line 4
> 
>     my settings in php.ini are
>     SMTP = "smtp.tsanalytics.com"
>     smtp_port = 25 

That means you need to authenticate to relay messages through that SMTP
server.

PHP mail() function does not support SMTP authentication.

You can try using the smtp_mail() function from this package that
emulates the mail function and supports authentication. Take a look at
the test_smtp_mail.php script:

http://www.phpclasses.org/mimemessage

You also need these other classes to perform authentication through SMTP:

http://www.phpclasses.org/smtpclass

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/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to