fix: Changed contentId to content_id for correct type#1364
fix: Changed contentId to content_id for correct type#1364YoussefHenna wants to merge 2 commits intosendgrid:mainfrom
Conversation
In order for the 'Content-ID' header to be set for the attachment, the parameter 'content_id' has to be set. 'contentId' isn't registered as the header, and the header is not provided in the email. The only workaround is to not use types, which defeats the purpose. This should fix the type
|
Please merge. |
|
omg, really... |
|
if anyone needs a hand... |
|
Wow I just spent a good chunk of time trying to figure out why SendGrid wasn't setting the |
|
@SendGridDX: can we merge this. It's insane that the field is misnamed in the official node package. |
Codeprinz-1
left a comment
There was a problem hiding this comment.
This looks good to me. @sendgrid-argo-cd @sendgrid-ci @sendgrid-github-readonly @sendgrid-jira @SendGridDX can we merge this type fix or update the code to use contentId. It doesn't make sense for the code to expect content_id and the type expects contentId. This is the official node package, I spent a bit of time trying to figure out what was wrong with my code only to find out hat it was this all along.
Fixes
In order for the 'Content-ID' header to be set for the attachment, the parameter 'content_id' has to be set. 'contentId' isn't registered as the header, and the header is not provided in the email. The only workaround is to not use types, which defeats the purpose.
This should fix the type
Checklist
If you have questions, please file a support ticket.