Problem: mandrill will only add attachments if there is an attachment URI pointing to a file in the filesystem. On the other hand the Mimemail module also supports passing the file content directly, we should do the same in Mandrill.

Solution: change the MandrillMailSystem:mail() method to look at $attachment['filecontent'] if $attachment['uri'] is not set.

CommentFileSizeAuthor
#1 mandrill-attachments-2390441-1.patch1.68 KBklausi

Comments

klausi’s picture

Status: Active » Needs review
StatusFileSize
new1.68 KB

Patch attached.

kitikonti’s picture

how should this work?
i have added a image to the body which looks like
<img src="sites/all/themes/my_theme/logo_mail.png" />

this actually brings me no image to the mail???

gcb’s picture

Status: Needs review » Fixed

Thanks klausi! Rolled into dev.

  • gcb committed 7a954a4 on 7.x-2.x authored by klausi
    Issue #2390441 by klausi: Support inline file attachments with mimemail...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.