wpsharks / comment-mail

A WordPress plugin enabling email subscriptions for comments.
http://comment-mail.com
GNU General Public License v3.0
8 stars 3 forks source link

Feature Request: Plain-Text Notification Emails #280

Open raamdev opened 8 years ago

raamdev commented 8 years ago

It would be nice if Comment Mail would not only sent plain-text versions of the HTML email notifications (which it does not currently do), but if also had an option that allowed you to specifically toggle plain-text-only emails, so that only a plain-text version would be sent. With that option enabled, a site owner could strip all HTML tags from the email templates and greatly simplify them.

WordPress notification emails are already plain-text and StCR notification emails are also plain-text. With Comment Mail, it's currently only possible to send HTML notification emails

jaswrks commented 8 years ago

I see now why I was expecting to see a multipart message the other day when I was testing this in a video. The SMTP class that Comment Mail comes with does send a multipart message. However, as it stands, that's only used if SMTP credentials are configured. Otherwise, it is sent to wp_mail() with only content-type: text/html here.

It is that send() method that handles all outbound mail in the CM project. If SMTP credentials are used, you can see it behaves differently.