When I enable this module and send a test email, I get a blank email with a corrupt attachment (called 'attachment'). When I inspect the message source, I do see a plaintext and HTMLversion of the email, yet it does not appear. What is causing this?

CommentFileSizeAuthor
#2 newsletter-sample.txt13.7 KBdfaulkner

Comments

pillarsdotnet’s picture

Status: Active » Postponed (maintainer needs more info)

Dunno. Can you send a test message to bobvin@pillars.net ?

dfaulkner’s picture

StatusFileSize
new13.7 KB

I'm not the original bug reporter, but I'm experiencing the same issues I'm about to send you a sample email with the problem. I'm running 6.x-2.15, so the problem appears in the latest release as well.

If I use htmlmail by itself, I get a correct rendering of html output, but html only, not a mime-encoded message with a text part as well. With htmlmail, mailmime, and mimemail all enabled, I get a multipart mime, but it appears as attachement with a very odd content type:

Content-Type: =?UTF-8?B?bXVsdGlwYXJ0L2FsdGVybmF0aXZlOwogYm91bmRhcnk9Ij1fYWM5YTM0NTcxYTE=?=
 =?UTF-8?B?OGY3ZGFhYzI5ZWE4Zjg2NDU5NTliIg==?=

I've attached my copy of the sample email (with full headers), for reference.

dfaulkner’s picture

Status: Postponed (maintainer needs more info) » Active
pillarsdotnet’s picture

Dunno when I'll be able to get to this, but the problem is obviously a corrupted Content-Type header.

Why do you have both HTMLMail and MimeMail installed?

dfaulkner’s picture

My attempt to use both may have been out of ignorance. I wanted to use simplenews to build newsletter content, then send that out as a multipart mime message, because, well, because that's the way it's supposed to be. :) Just HTML rubs me the wrong way from a graceful-degradation/progressive-enhancement viewpoint (plus, I'm old-school).

I wanted HTML from simplenews to get wrapped in a special "newsletter" theme that was table-based for browsers and then sent out. This is because I wanted to include additional content from modules in the various regions in that theme (most notably, the customer has asked for the ability to include sponsor ads at the top and bottom of the newsletter). The echo module seemed the best choice there from what I read in htmlmail mail.

So, I thought the right stack was: simplenews -> newsletter node -> htmlmail (pull in htmlmail-simplenews.tpl.php + theme/page.tpl.php) -> input filters (img_assist, emogrifier, pathologic) -> mimemail -> out

Apparently, I have that wrong or too complicated. If there's a better way, I'm all ears.

pillarsdotnet’s picture

salvis’s picture

Issue summary: View changes
Status: Active » Closed (cannot reproduce)

Not sure what the state of this issue is, but it's obsolete either way.