Click to See Complete Forum and Search --> : windows mail


Anon
05-14-2001, 10:29 AM
I'm kind of new to php on windows, is there a simple way to send email on a windows NT 4 system with smtp and PHP4.

or what are my options? the domain is on shared hosting, you can see the phpinfo() at http://www.talkaboutstress.com/phpinfo.php

Andy

PS. I tried to search under the support forums, but the search was down.

ame12
05-14-2001, 12:26 PM
You need to specify your ISP's SMTP server in your PHP.INI file. Edit the [mail function] section and set the following two variables:

SMTP=smtp-server.myisp.net
sendmail_from=fred@myisp.net

Then call the mail function:

mail("joe@foo.com", "Subject", "Line 1\nLine 2\nLine 3");

It's pretty easy.

Dave


===========================================
http://badblue.com
Free small footprint web server for Windows
P2P file-sharing, PHP, wireless apps & more
===========================================