Set up Messaging
Up to this point you have been setting up how your website will receive emails and turn them into content and comments. Now we're going to turn to how that content and associated comments are distributed to subscribers. The main modules you will use are Messaging and Notifications, and their subsidiary modules.
If you use PHPMailer, rather than Drupal Mail to send messages you must fix a bug in the messaging_phpmailer.module file to ensure that the reply-to address is set properly in outgoing. Find the following code:
if (!empty($replyto['name']) && !empty($replyto['email'])) {
$mail->AddReplyTo($replyto['email'], $replyto['name']);
}
Replace it with:
if(!empty($message['headers']['Reply-To'])) {
$mail->AddReplyTo($message['headers']['Reply-To']);
}
Many of the default settings in the Messaging module will work without changes. The first decision to make is whether you will leave the core Drupal mail module active or rely solely on PHPMailer for emails Regardless, you will see Simple as a choice. It is used to format notifications for subscribers who choose to read messages on the website.
The next choice you need to make is what input format and final filter will be used to format outgoing email. By the time you get to this point, there should be no malicious code in your content. You can use either the Full HTML or Filtered HTML filter as the Format filter. I have found the Fast HTML filter works fine as the final filter.
If you have already set up PHPMailer and it is working there is only one setting you need to make. Click on the PHPMailer tab and check the Include attachments box and click Save.
- Log in to post comments