I got this error after installing the SMTP module whenever I tried to send email. Can someone please help?

Fatal error: require_once() [function.require]: Failed opening required 'sites/all/modules/smtp/phpmailer/class.phpmailer.php' (include_path='C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP5\pear;./;./includes;./pear') in C:\inetpub\vhosts\conceptomarket.com\httpdocs\sandbox001\sites\all\modules\smtp\smtp.module on line 246

Comments

slnm’s picture

I haven't worked with the SMTP module but I have a couple of suggestions:

1. The "failed opening required" message is a big clue. You're missing some files which means that the module very likely relies on third-party code that you have to install separately.

2. Look at the discussion here: http://drupal.org/node/279264 and here: http://drupal.org/node/311151
I found the discussions by Googling your error message.

3. I downloaded the module just to see the README.txt and the INSTALL.txt files.

INSTALL.txt says this:
Download the PHPMailer package (the URL is listed in REQUIREMENTS section
of the README.txt file) and place it in a directory named "phpmailer" in
your /sites/all/modules/smtp directory.

README.txt says this:
* The PHPMailer package from Codeworx Tech., which can be found here:
http://sourceforge.net/project/showfiles.php?group_id=26031
http://sourceforge.net/projects/phpmailer/
http://phpmailer.codeworxtech.com/

Downloading the PHPmailer package and putting it in the right place should get you past the require_once error.