Re: required help on mail function

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

 



Hello,

On 10/28/2004 03:34 AM, Kunal Aggarwal wrote:
I am using PHP 4.3.4 version.
Please tell how to unpload a mail function.
Error comes on executing mail function is


"mail(): SMTP server response: 550 5.7.1 Unable to relay for softengg@xxxxxxxxx in C:\Program Files\Apache Group\Apache2\htdocs\testprodigious\MAIL\mail_enquiry.php on line 30
"

That means you need to authenticate to send the message. The mail() function does not support SMTP authentication.


You may want to try this class that comes with a wrapper function named smtp_mail() that lets you specify the user name and password for authentication:

http://www.phpclasses.org/mimemessage

You also need these classes for performing the actual SMTP delivery and authentication:

http://www.phpclasses.org/smtpclass

http://www.phpclasses.org/sasl



--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

--
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