xeraa/silverstripe-smtp

Sending HTML Mail Sends a Blank Plain Text Version

gordonbanderson opened this issue · 4 comments

When sending HTML email, a plain text version is not sent. This is not the same behavior as the standard SilverStripe mailer, but I am forced to use SMTP due web server security restrictions.

Further investigation shows that mailer->AltBody is being set which appears correct from the documentation. Unfortunately I have no access to the production web server other than the 'poke it with a stick and see what it does' approach so I may have to bail out to plain text messages only instead

Hi Gordon,

thanks for raising this issue - I must admit that I've never tested this functionality.
I'm currently busy with projects, but I'll try to look into it by the end of the month.
A pull request would still be most welcome ;-).

Cheers,
Philipp

It appears the issue was a deployment issue, the mail templates were missing for reasons unknown, which of course explains the empty plain text version. I had to add explicit debug on live via echo statements to discover this as I could not replicate it in any dev or staging versions. As such I guess this can be closed as not a bug :)

Thanks for clearing that up!