> It appears that the code runs perfectly, but the I get thie following
> message back, which I'm assuming originates at the SMTP server...
>
> PHP Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable
> to relay in C:\Inetpub\wwwroot\email_test.php on line 6
>
>
I have run into this issue before as well.  It does have to do with Windows
SMTP not being configured as an open relay by default (thank goodness).
there is a setting in IIS to configure which hosts are allowed to send mail
through the SMTP server.  You have to add the IP address of the web server
to that list.

On a Windows Server 2003 box, open IIS Manager, expand the server name,
right-click Default SMTP Virutal Server and select properties, go to the
Access tab, then click the "Relay" button.  Add the IP Address and voila, it
should start working.  (Notice the "should" verbiage because it's never this
simple :)


Aaron Throckmorton

_______________________________________________

UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net

Reply via email to