Drupal 7 - 'Plaintext email only' causing phpmailerException - Message body empty

This is an onprem installation.

Emails (all system / rule based emails) work fine unless a user checks ' Plaintext email only' option in their user profile. When they have it checked, the email fails with a message to contact the system administrator.

I have the following mail/smtp related modules installed:
-Mail System
-Mime Mail
-Mine mail action (disabled)
-Mime mail CSS Compressor (disabled)
-SMTP Authentication Support

Looking at the logs, you first get an error with the message:

'phpmailerException: Message body empty in PHPMailer->Send() (line 577 of /$path$/sites/all/modules/contrib/smtp/smtp.phpmailer.inc).'

followed by:

Error sending e-mail from "SITE" <email> to "user" <email@gmail.com> : Message body empty

----

If I use the test email function of the 'SMTP Authentication Support' module, I get the same behaviour with the same error. I checked for updates, and there aren't any that are email related.

0 1 635
1 REPLY 1

Hmm, I don't know much about this, but this issue might help: https://www.drupal.org/project/smtp/issues/1813164 there are some patches available in there, and some posters found a workaround.