PHPMailer missing and not in prerequisites.

peterx - February 7, 2009 - 02:12
Project:Webmail Plus
Version:6.x-1.4
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

PHPMailer is required in webmail_plus.compose at about line 444.
require_once "vendor/PHPMailer/class.phpmailer.php";

I did not find documentation on installing PHPMailer. It seemed a bit silly to document the whole PHPMailer bit when there is now a PHPMailer module. I downloaded and installed the PHPMailer module, followed the module's instructions for installing PHPMailer, then changed your include to the following.
require_once drupal_get_path('module', 'phpmailer') . '/phpmailer/class.phpmailer.php';

I also added the following to the webmail_plus.info file.
dependencies[] = phpmailer

When the PHPMailer module moves out of alpha/beta status, it seems like the most logical way to maintain the PHPMailer connection.

#1

scripthead - February 7, 2009 - 04:18

Actually there should be a modified version of PHPMailer in vender/PHPMailer. The modifications allow webmail to simulate the message sending in order to generate a copy for the Sent folder.

#2

scripthead - February 7, 2009 - 04:45

PHPMailer was added in webmail_plus 6.x-1.7

#3

peterx - February 7, 2009 - 04:45

Where is the vendor directory? I use a standard VPS with WHM and Cpanel. Cannot see vendor directory or PHPMailer directory anywhere.

Where do the modifications come from? The PHPMailer module asks you to download the latest PHPmailer from sourceforge. Sourceforge has PHPMailer v2.3 for PHP5/6 Notes (2008-11-11 03:17). The PHPMailer module extends the standard PHPMailer classes with some extra features.

#4

scripthead - February 7, 2009 - 04:48

There are modifications to the class.phpmailer.php itself. It's now included in the webmail_plus 6.x-1.7

#5

blackdog - February 7, 2009 - 15:09
Status:active» fixed

#6

System Message - February 21, 2009 - 15:10
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.