Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer 1

up vote 4 down vote accepted

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

[mail function]
SMTP = mail.example.com
sendmail_from = admin@example.com

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
add comment

Your Answer

 
discard

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.