Click to See Complete Forum and Search --> : using mail ( ) and smtp


Anon
06-19-2002, 08:43 PM
I installed a Win2k Advanced server to run my apps and need some help using the mail ( ) function properly.

When I run my program that calls the mail ( ) function - I get a web server error. I then changed the smtp var in php.ini to point to my IP - but have had no success. What do I need to do to get my server to act as an smtp server so I can use the mail function ?

Any help is appreciated.

Mark

Anon
06-24-2002, 02:12 AM
This was posted about two years ago (by JB )on this forum and is still the solution.....pay attention to 6 & 7.

"1. open up SMTP properties in IIS,
2. select the access tab,
3. click on connection (4th button from the top)
4. grant access to all expect the list below, make sure the checkbox to allow all is checked
5. click on ok,
6. click on relay (5th button from the top)
7. grant access to all except the list below,
make sure the checkbox to allow all is checked
8. click on apply, click on ok, and run a mail() test using localhost as your smtp server.
9. this time it should work.. :)
"