PHP Mail server for Windows

Usually I wouldn't be looking for a mail server, since I just compile sendmail with PHP. However, now that I am on a Windows box, I was looking for a free mail server that would work well with PHP.

Who is Participating?
Diablo84Connect With a Mentor Commented:
As far as i am aware Windows boxes must connect to a remote server via smtp and send the mail via that server.

In which case you might want to google for a free smtp server (a quick search returned: which looks potential) or you could use your ISP's smtp service if they permit this.

You would then want to look at phpmailer ( so you can use the class to easily connect to the smtp server, eg:

$mail->Host     = ";
$mail->SMTPAuth = true;
$mail->Username = "your_accounts_username";
$mail->Password = "the_accounts_password";

Maybe there is a better option for Windows based mail, i'd like to think so but i haven't yet come across anything.
hernst42Connect With a Mentor Commented:
If you already have a mailserver where you can send your mails over use that mailserver by setting the values in the php.ini:

; For Win32 only.
; For Win32 only.
sendmail_from =

For detailed explanation of that ini-vars see

If you are using W2K and later on the IIS-package contains also a Mailserver. So if you only want to send mails from within PHP there is no need to setup an extra mailserver on that box
ThGConnect With a Mentor Commented:
In case you have IIS available it contains an SMTP server if i recall correctly. The problem is the licence thing. Using your isp's  one is a good idea anyway, because it would require less traffic from your host.
drakkarnoirAuthor Commented:
Yes, you are right Diablo.

Here was my solution:

I got Xmail from, then set the corresponding SMTP and POP3 servers to my ISP's (the settings they gave me for my Outlook).

ThG, :P @ IIS. I'm using Apache2 :)
I tend to agree with your IIS opinion, but shame on you for using Windows as host! :-)  joking.
All Courses

From novice to tech pro — start learning today.