-
Notifications
You must be signed in to change notification settings - Fork 266
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
SetContentID doesn't actually set content ID for attachments #251
Comments
Hi @kevinmu, Could you please provide the output of Thanks! With Best Regards, Elmer |
Hey, sorry for the delay. This issue is fixed if you use |
Awesome, thanks for circling back! I'll leave this open so we can update the documentation for clarity. |
Hello @thinkingserious 👋, Thanks to the sendgrid team for open sourcing this and other projects. I noticed that there is no mention of the issue on the official v3 docs: https://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/index.html If there is a need to update ContentID usage here, there are a few places where a notice could help:
Would it also be appropriate to remove SetContentID from any examples when using content disposition "attachment"? |
Those are all solid recommendations @anchepiece. I will reserve this PR for you :) |
Thanks @thinkingserious. Any suggestions or corrections? |
I think you are headed in the right direction. Please submit a PR and I'll review it. Thanks! |
Issue Summary
I'm trying to send an email with an attachment, and I am trying to set the content ID for that attachment. However, when I select 'view original' in GMail, it appears that the attachment does not have a content ID set. However, the other fields (content-disposition, filename, etc.) seem to be set correctly.
Steps to Reproduce
Technical details:
sendgrid-go Version: 8caf17a (v3.4.1)
Go Version: 1.9.2
The text was updated successfully, but these errors were encountered: