I 'm having some trouble getting Simplenews to use Mail System to route through the MIME and HTML email modules correctly.

HTML Email is working mostly correctly. Test messages come through, have a template applied, etc. when using the HTMLMailSystem sending class.

My Mail System configuration currently looks like this:

  1. Site-wide default MailSystemInterface class: HTMLMailSystem
  2. HTML Mail module class: HTMLMailSystem
  3. Mime Mail module class: HTMLMailSystem

I'm interpreting these options as a sort of if/then: If it's coming from the Mime Mail module, then go to HTMLMailSystem.

With this configuration I'm getting email with a Simple Newsletter test email, but it's not themed correctly and has multiple versions (HTML, plain text) attached with some debug info. I'm guessing it's concating the email with all the MIME sections into one long message somehow.

I'm assuming there's a configuration error on my part somehow, but have tried multiple configurations with no real success and feel like I'm just randomly trying things at this point. Any thoughts?

I can add a Simplenews class and point it, but I'm having a conceptual issue where I feel like I need to set up a chain where SimpleNews pipes to HTML which pipes to MIME which pipes to actually send, but not sure how this should be done.

Comments

balancestuff’s picture

I've changed to the following and get different results, if not better:

Site-Wide Default: DefaultMailSystem
HTML Mail module class: DefaultMailSystem
Mime Mail module class: HTMLMailSystem
Simplenews mail module class: MimeMailSystem

Received the message, and MIME is working correctly, but still no theming.

Tried this:
Site-Wide Default: DefaultMailSystem
HTML Mail module class: MimeMailSystem
Mime Mail module class: DefaultMailSystem
Simplenews mail module class: HTMLMailSystem

And back to the 'all MIME sections in one message' still with no HTML Mail theming.

balancestuff’s picture

Removed MIME Mail module from the equation.

balancestuff’s picture

Status: Active » Closed (works as designed)

I think this can be close. It appears it was a configuration issue with the HTML Mail module, not Mail System.