Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a web server where I currently host an ASP.Net Web Application that uses the IIS6 SMTP Server to send notification emails.

I installed PHP and Wordpress using the Web Plataform Installer and installed it as a subdirectory for my website. The blog is working perfectly, but it doesn't send any notification email, and says that the mail() function is not set, even though I correctly application uses.

Is there any other place I need to go to enable the mail function?

share|improve this question
up vote 5 down vote accepted

Basically, you need to set up these in your php.ini:

[mail function]
sendmail_from =

These work on Win32 and Win64, and let you change mail()'s behavior to run through SMTP. Obviously, you have to have an SMTP server that will let you talk to it.

Mainly this is done because actually integrating a sendmail equivalent on Win32 is a nightmare.

share|improve this answer
above is applicable for win64. – Bharanikumar Dec 18 '12 at 1:26
@Bharanikumar: Edited per, thanks. – chaos Dec 19 '12 at 18:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.