Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#1 | mimemail-1865864-1.patch | 717 bytes | sgabe |
Comments
Comment #1
sgabe CreditAttribution: sgabe commentedWe can move that line inside the statement that checks for attachments. Let me know if this solves your issue.
Comment #2
sgabe CreditAttribution: sgabe commentedChanging status.
Comment #3
roeneman CreditAttribution: roeneman commentedSorry, 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