When going to the Site Configuration -> PHPMailer page I get the following error:

Fatal error: Class 'PHPMailer' not found in /var/www/sites/all/modules/phpmailer/includes/phpmailer.class.inc on line 15.

Here is the line:
"class DrupalPHPMailer extends PHPMailer {"

I have installed the libphp-phpmailer class version 2.1-1. This was the latest release that came with Ubuntu Linux 9.04.

I find the class "PHPMailer" in the following file:
/usr/share/php/libphp-phpmailer/class.phpmailer.php

Why cannot the module find this class?
Is there anything I need to do to make the module find the class, like registering the libphp-phpmailer class anywhere?

Appreciate all help!

Comments

smk-ka’s picture

Status: Active » Fixed

This module requires the PHPMailer library at a predefined location. From the README:

Download PHPMailer for PHP5/6 from

     http://sourceforge.net/projects/phpmailer/files/phpmailer%20for%20php5_6/

   and extract the the following files to the subdirectory 'phpmailer' of this
   module:

     class.phpmailer.php
     class.smtp.php
 
   Be careful NOT to extract the path names contained in the archive.

Thus, extracting both files to /var/www/sites/all/modules/phpmailer/phpmailer/ should fix this issue.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

amcat’s picture

Fatal error: Class 'PHPMailer' not found in /customers/8/e/e/.............de/httpd.www/sites/all/modules/phpmailer/includes/phpmailer.class.inc on line 12