When using SMTP can no longer send html

Created on 16 December 2011, almost 14 years ago
Updated 14 March 2018, over 7 years ago

I tried SMTP and it does allow me to set up a different mail server (so very good so far) but it then prevented me from sending html mail. I am not sure where to post this as the modules involved are Simple News, Mail System, Mime Mail and SMTP. When selecting SMTP in the Mail System, Simple news sends out raw html. This also occurs using the simple contact form (under users) just raw html was sent there too - so it doesn't appear to be a Simple News problem.By raw I mean I see instead of a bold character. When the default mail system is selected it would send out stripped content meaning that I would see just the text with no html mark up at all.

πŸ› Bug report
Status

Closed: works as designed

Version

1.0

Component

Documentation

Created by

πŸ‡ΊπŸ‡ΈUnited States Road Runner

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¦πŸ‡ΊAustralia ConcreteGannet

    I just want to comment on this issue.

    There is no problem in the smtpmail module.

    HTMLMail on the other hand...

    After you enable the SMTPMail module, it is clear you intend to use SMTP, and plain text emails from your Drupal site are sent that way.

    Even *after* you have done so, HTMLMail continues to call the PHP mail function, which assumes you have a SMTP server on localhost. The default behaviour for HTMLMail should be to trust the setting you have made for plain text emails.

    To solve the problem, you have to generate your own class which is not part of standard Drupal. To do so, you have to relax permissions so a user interacting with your Drupal site can generate executable PHP code. Isn't that a major security flaw?

Production build 0.71.5 2024