After add PHPmailer module in my admin panel when cron run I see:
Fatal error: Class 'PHPMailer' not found in /var/www/virtual/prosto.lutsk.ua/htdocs/sites/all/modules/messaging/messaging_phpmailer/messaging_phpmailer.module on line 55
line 55 is:
$mail = new PHPMailer();
what is wrong?

Comments

m3avrck’s picture

Status: Active » Closed (works as designed)

Please read the readme. You didn't add the PHPMailer class properly.

bohart’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

from readme file

1. Download and unzip the messaging_phpmailer module into your modules directory.

2. Download the PHPMailer class: http://phpmailer.codeworxtech.com/
   Unzip the PHPMailer folder into you messaging_phpmailer folder.
   Rename folder to PHPMailer

3. Goto Administer > Site Building > Modules and enable Messaging PHPMailer

4. Goto Administer > Site Configuration > Messaging
   Select the settings tab.
   Select Full HTML as the filer for Messaging PHPMailer. Save settings.

after this action cron run successful, but after some time (when any information must send) I see:
Cron run exceeded the time limit and was aborted.
Fatal error: Class 'PHPMailer' not found in .../sites/all/modules/messaging/PHPMailer/messaging_phpmailer.module on line 55

bohart’s picture

Status: Closed (works as designed) » Postponed (maintainer needs more info)
bohart’s picture

Assigned: Unassigned » bohart
Category: bug » support
Priority: Normal » Minor
Status: Closed (works as designed) » Closed (fixed)

oops(( another directory was rename by me((
thanks.
all is good.
closed.