setting up mail server on windows. testing...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jmut
Forum Regular
Posts: 945
Joined: Tue Jul 05, 2005 3:54 am
Location: Sofia, Bulgaria
Contact:

setting up mail server on windows. testing...

Post 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.
rubberjohn
Forum Contributor
Posts: 193
Joined: Fri Feb 25, 2005 4:03 am

Post 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
Post Reply