I suggest you take a look at getting composer . https://getcomposer.org Composer simplifies the creation of third-party libraries and uses one autoloader for all. It also standardizes where all your dependencies are, as well as some automation features.
Download https://getcomposer.org/composer.phar to C:\Inetpub\wwwroot\php
Delete the directory C:\Inetpub\wwwroot\php\PHPMailer\ .
Use composer.phar to get phpmailer package using command line to execute
cd C:\Inetpub\wwwroot\php php composer.phar require phpmailer/phpmailer
Upon completion, it will create the C:\Inetpub\wwwroot\php\vendor directory along with all the phpmailer files and create an autoloader.
Next, in your main project configuration file, you need to include the startup file.
require_once 'C:\Inetpub\wwwroot\php\vendor\autoload.php';
vendor\autoload.php will contain information for using $mail = new \PHPMailer;
Further information on the PHPMailer package can be found at https://packagist.org/packages/phpmailer/phpmailer
fyrye
source share