-
Notifications
You must be signed in to change notification settings - Fork 345
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
Add attachment content-disposition
and content-id
fields
#502
Comments
content-disposition
fieldcontent-disposition
and content_id
fields
content-disposition
and content_id
fieldscontent-disposition
and content-id
fields
Hi @egeersoz, thanks for opening this issue and for the patience! I'm taking over maintenance of Bamboo and trying to go through all the issues. Having the ability to set If this is still of interest to you, I'd be happy to review a PR. Otherwise, I'll try to get to this when I have some time. |
Any chance we can merge @sreecodeslayer PR? It looks good to me. |
HI @germsvel and @sreecodeslayer 👋 I've had to solve this problem for the use case of inline images. My approach was to do something a bit more general and to simply allow the user to provide arbitrary header overrides to the adapter. I see @sreecodeslayer that you've implemented a specific solution for your use case, but I'd like you both to consider this one which solves both our problems. Please let me know what you think. Also note, that for inlined content (at least for images) its important to reorganize the
I've made this change for the From some reason |
Ran into a problem that I think this issue would solve. When using the SendgridAdapter, it's not possible (maybe incorrect?) to refer to the inlined images using Is there an alternative? |
SendGrid api has the following properties for emails:
https://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/index.html
See the
disposition
andcontent_id
properties under attachments.These turn out to be pretty important when you're sending .ics files (calendar invites). By default SendGrid populates the disposition value with "attachment" if it isempty, but Microsoft Outlook requires it to be set to "inline" in order to display the .ics file as a "native" invitation.
I think since there's a content_type field in the
%Bamboo.Attachment{}
struct already, it makes sense to also be able to set acontent_disposition
field.(Note that when setting disposition to "inline", Sendgrid also requires a unique
content_id
to be set.)The text was updated successfully, but these errors were encountered: