Re: Problem with mail()
| From: | Manuel Lemos | Date: | Fri, 05 Dec 2003 21:04:52 +0000 |
| Subject: | Re: Problem with mail() | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-22330@lists.php.net to get a copy of this message | ||
Hello,
On 12/04/2003 01:57 PM, Gerardo Rojas wrote:
I am trying to send mail with the mail() function. My environment is Win2K proffessional. IIS5.0 and my email server is Outlook. This is the error I'm getting when i try to send mail. i have changed the php.ini file for: SMTP = my mail server ------------------------- Creating socket Successfully created socket! Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for grojas@strategicinc.com in c:\inetpub\wwwroot\gerardo\software\php\sockets\mail_server.php on line 25 -------------------------That server requires authentication to relay messages on it. The mail() function does not support authentication. You may want to try this other class that comes with a wrapper function named smtp_mail() that emulates the mail() function but lets you specify the authentication credentials: http://www.phpclasses.org/mimemessage You will also need this: http://www.phpclasses.org/smtp -- Regards, Manuel Lemos Free ready to use OOP components written in PHP http://www.phpclasses.org/