Hi,

When I send out e-mails without attachments my Outlook client still believes there is an attachment attached and shows the 'attachment flag' in the inbox. But with a little change this goes away. Not sure though what I break with that ...

In mimemail.module I changed line 169 from:
$message['params']['attachments'] = $attachments;
into:
If (empty($attachments) == FALSE) $message['params']['attachments'] = $attachments;

I'm sure this can be done better, but I'm not too advanced in php. Any suggestions how to do this right? And is this change safe to use?
Thanks!

Regards, Roeneman

CommentFileSizeAuthor
#1 mimemail-1865864-1.patch717 bytessgabe
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sgabe’s picture

Priority: Normal » Minor
FileSize
717 bytes

We can move that line inside the statement that checks for attachments. Let me know if this solves your issue.

sgabe’s picture

Status: Active » Needs review

Changing status.

roeneman’s picture

Sorry, this option does not help, what of course means that my first solution did not work either ... (my test setup was wrong, I'm afraid, sorry again)

Did some further testing and I'm afraid it might be a Content Type issue. Could it be we should use multipart/mixed when sending attachments and multipart/alternative if it is html only? I receive all messages with Content type multipart/mixed in the header.

Regards,
Roeneman

Status: Needs review » Needs work

The last submitted patch, mimemail-1865864-1.patch, failed testing.