Problem sending reports using reporting module

Hi folks,

I had a closer look at sending emails with reports generated by the reporting module.

It seems that this is broken somehow. I suspect changes to the mailing libraries in newer versions of Gibbon. I’m currently testing it with Gibbon v17.

Can somebody reproduce this?

Kind regards,

@andystat :slight_smile:

Fix to make emailing work supplied by Andy (@andystat):

Needs two corrections in file ‘pdfmail_send.php’:

Line 30 (is optional in more recent versions of Gibbon due to library autoload I guess)
//include “…/…/lib/PHPMailer/class.phpmailer.php”;
include “…/…/vendor/phpmailer/phpmailer/class.phpmailer.php”;

Line 105:
//$returnPath = $_SESSION[$guid][“absoluteURL”].“/index.php?q=/modules/”.$_SESSION[$guid][“module”].“/pdfmail_sent.php”;
$returnPath = $_SESSION[$guid][“absoluteURL”].“/index.php?q=/modules/Reporting/pdfmail_sent.php”;