-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inline attachments are not included in attachments field #15
Comments
I tentatively agree with that. I haven't used inline attachments with Mandrill. Do they keep a reference to the attachment in the email body? Would folding them into |
Yes, the email body can include something like
Because the content-ID also appears as the |
Sounds good to me. |
@joeyAghion are you planning on submitting a PR for this? |
Hey @wingrunr21 I was but am still experimenting. It turned out that this wasn't quite enough to support our use case. All the data would be available in the revised Another note, in case someone else pursue this: it turns out the Mandrill docs are misleading. The |
This is biting me too. Going to see if I have better luck with Sendgrid. |
So this explains why some emails are missing attachments. iPhone users generally paste images into the emails instead of doing a classic attachment, and when they do that, my email processor is failing because it doesn't think that there's anything attached. Anybody actually get this working, or are we all just switching to sendgrid? |
I'd love a PR if someone sends one along. If the iPhone use case can consistently reproduce this then I can also try and find some time to work on a fix. |
Hmm, I actually just had a friend test with Mail.app on iPhone and it actually worked fine in the attachments and pasting the image, but it seems like it's more of a problem when pasting an image inside the Gmail app. Might just be a Gmail issue in fact, so ignore what I said. |
haha ok. Well then, still looking for a PR or repeatable use case. |
FYI - https://github.com/kat3kasper/griddler-mandrill Just came back to this and found a way to reproduce. I use Airmail for my desktop email app. Attaching files normally comes through as attachments, but if you drag an image from finder into the email, it gets added as an inline attachment, which then shows up in the images hash instead of attachments. The fork above seems to make it work, but it might not be suitable for all cases. |
Ok, great. I'll try and take a look at this then. |
+1 Need it too! |
#27 has been merged. Images will be extracted and added into the I've got a couple more enhancements coming (specifically around determining whether an attachment was inline or not). |
Hi! I just came across this issue. I am trying to send inline attachments with griddler/mandrill for a Rails app. Whenever it gets processed the attachments have incorrect names. I inspected the
it seems like the Any info would help! thanks! |
Inline attachments are provided by the Mandrill webhook's
images
field and are not included in theattachments
field. As such, they're not available in theGriddler::Email
'sattachments
property.I think they should be folded into the
attachments
property. Thoughts?The text was updated successfully, but these errors were encountered: