Re: cant mail

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

on 09/06/2007 07:42 AM Diana Castillo said the following:
> 
> 
>     when I try to send mail using this code:
> 
>     mail("dcastillo@xxxxxxxxxxxxxxx","TEST MAIL","TESTING MAIL");
> 
>     I get this error:
> 
> 
>     Warning: mail() [function.mail]: SMTP server response: 554 
>     <dcastillo@xxxxxxxxxxxxxxx>: 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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux