Re: required help on mail function

From: Date: Thu, 28 Oct 2004 15:39:48 +0000
Subject: Re: required help on mail function
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-200545@lists.php.net to get a copy of this message
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@iclcl.com 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

« previous php.general (#200545) next »