What are the PHPMailer requirement for sending mail and receiving mail in IIS 7

4.5k views Asked by At

I'm running a Windows 2008r2 server with PHP and IIS 7.0 installed, and I want to add phpmailer to my IIS 7, but I'm not sure what roles or features I need installed

From my understanding to run phpmailer I just have to unzip the phpmailer folder and drop all the files in the project file where I have a website and then edit some commands.

But then if I have to send an email. Do I need to have the SMTP feature installed on my IIS 7? Or does PHP send it without SMTP installed? Also do I need any other features installed to make sure it works?

I'm asking because I havent been able to install SMTP successful or run phpmailer successfully, so I would like to know all the requirements.

1

There are 1 answers

4
Machavity On

You have to have some form of mail server installed and preferably configured in php.ini. That doesn't mean it has to run on your Windows server, it just has to be running somewhere and accessible to said server. So you could have a Linux box running sendmail and tell your Windows PHP to use that to send mail through.