Click to See Complete Forum and Search --> : Sending PHP email Setup


sonicphpr
12-07-2001, 12:39 PM
I have PHP up and running well on a win2k server. I'm not sure how exactly to setup the php.ini or what i need to do to send mail.

any suggestions?

-Michael

mithril
12-07-2001, 07:50 PM
There's two setting's to need to find and edit in php.ini, SMTP and sendmail_from. Set SMTP equal to the addres of a valid smtp server which allows forwarding for your subnet (ie. smtp.your_isp.com). sendmail_from should contain the email address you want the message to be sent from. Make these changes, restart Apache/IIS/whatever, and you should be good to go.

-geoff

Anon
12-12-2001, 09:13 AM
I am having a similar problem. How do I set up the .ini file to use the internal IIS smtp server? I am struggling with this...

Thanks,
dave

mithril
12-12-2001, 01:43 PM
I would assume you set the SMTP directive in php.ini to be the ip or host address of the IIS SMTP Server (ie. localhost or whatever). Beyond that, I've no idea how to config the IIS SMTP service to forward PHP generated mail as I avoid Typhoid Mary as much as possible and thus haen't had to deal with the problem. I'd hazard a guess that you'd need to config the IIS SMTP service to allow mail relying for whatever email address you entered in the sendmail_from directive. HTH.

-geoff