Outlook is not a mail server, it is a mail client. You need to load a mail server on your machine to get php mail() to work. A decent, free one for Windows is Mercury, www.pmail.com. Once that is setup, in php.ini change the SMTP line to SMTP= localhost
John "Gerardo Rojas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] 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 [EMAIL PROTECTED] in c:\inetpub\wwwroot\gerardo\software\php\sockets\mail_server.php on line 25 ------------------------- -- Gerardo S. Rojas mailto: [EMAIL PROTECTED] -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php