28
Just an update to this topic.
I realized I didnt need to hack xoopsmailer.php to implement sending emails in text/html, text/plain or multipart/alternative formats. I could set variables directly in class.phpmailer.php.
To send an email as plain text
$xoopsMailer->multimailer->IsHTML(false);To send an email as html
$xoopsMailer->multimailer->IsHTML(true);To send an email as html with a text version included (multipart email)
$xoopsMailer->multimailer->AltBody = "text version of email";To make a text version of a html message, I use the Html2Text class.
Sometimes bounced emails dont go to the Sender of the email -- this is due to the Return-Path being the default server email address and thats where the bounces endup (e.g.
nobody@servername.com).
To force the Return-path variable:
$xoopsMailer->multimailer->Sender = $xoopsConfig[adminmail];Perhaps someone may find this info useful.