Click to See Complete Forum and Search --> : What do I need to know to set up mail()


Anon
04-13-2002, 10:19 PM
I've installed php and apache on my windows machine for development purposes, and I need to know how to edit the php.ini file so I can use the mail() function.

I know this is the section I'm supposed to edit, but I'm at a total loss as to what I should edit it to:

SMTP = the.mail.server.name ;for win32 only
sendmail_from = you@wherever.com ;for win32 only

Can someone give a detailed description of what I should change this to and how I would find out the neccessary information?

Thanks in advance,
Mark

crusty_php
04-14-2002, 09:29 AM
As long as your ISP/Hosting company is fine with it you need only set the SMTP= to the same value as your normal email out server as found in your email program (e.g. outlook). You obviously need to be online if you want to avoid php giving an error about opening your email client.