I haven't widely tested this across email clients, but attachments work fine in GoogleMail, but not on the iPhone. (The paperclip shows on the list of emails, but when you open the email there is no attachment.)
A similar problem is recorded here:
http://seamframework.org/Community/IPhoneDoesntShowAttachmentsInTheEmail...
The fix is reported as being to change the content type from multipart/related to multipart/mixed. I made the same change in MimeMail and it removed the issue for me.
I hacked the mimemail.inc file as follows:
Line 326 of mimemail.inc reads:
$content_type = 'multipart/related; type="multipart/alternative"';
and I changed it to:
$content_type = 'multipart/mixed; type="multipart/alternative"';
which resolved my issue.
If I'm just doing something wrong with the way I've configured MimeMail, then please enlighten me. If this is a common bug for attachments sent by MimeMail, then this or something like it is the fix.
Comments
Comment #1
sgabe commentedThis comes up regularly.
Please, always ...
A patch in #911612: Hidden attachments in some email clients was committed to fix this issue, hopefully it will work for you too. However the change you made works for iPhone, but breaks the messages in other email clients.
Marking as a duplicate of #911612: Hidden attachments in some email clients and #372710: HTML emails are text-only in Hotmail.
Comment #2
richardtmorgan commentedThank you,
I did look through the issue queue - and only found http://drupal.org/node/1138548 which didn't help me;
I did download the most recent release (alpha 8) and the issue did not appear fixed there.
Thank you for pointing me the right way though.
Richard
Comment #3
sgabe commentedThe most recent release is not alpha8 but dev.