Page 1 of 1

setting up mail server on windows. testing...

Posted: Fri Mar 17, 2006 1:30 am
by jmut
Hi,
I want to play with sending emails with php/apache. I don't have any valid mail server or anything.
For now I want to send mails to myself only.
The problem is right now I am on windows and don't know how to setup mailserver.
Could you help me...any pointers how to setup mail server and test sending mails.
10x in advance for spending time reading this ;)
Cheers.

Posted: Fri Mar 17, 2006 6:53 am
by rubberjohn
i had a similar problem - i dont know if this is the best way to do it but it worked for me -

just put:

Code: Select all

ini_set("SMTP","YOUR ISP SENDMAIL SMTP ADDRESS");
ini_set("sendmail_from","YOUR EMAIL ADDRESS");
at the top of the page that you mail() function is in.

'YOUR EMAIL ADDRESS' can be any email address - it doesn't have to be one that your ISP has given you.

Here is a pretty comprehensive list of smtp addresses for particular isps.

http://www.css.qmul.ac.uk/mail/smtp/ispsmtp.html

rj