- π¦πΊ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?