Open yujideveloper opened 1 year ago
When I used Base64.encode64 to encode attachments, I got the following error:
Base64.encode64
{ "errors": [ { "message": "The attachment content must be base64 encoded.", "field": "attachments.0.content", "help": "http://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/errors.html#message.attachments.content" } ] }
It is resolved by changing to encode attachments using Base64.strict_encode64 where no line feeds are added.
Base64.strict_encode64
If you have questions, please file a support ticket, or create a GitHub Issue in this repository.
Fixes
When I used
Base64.encode64
to encode attachments, I got the following error:It is resolved by changing to encode attachments using
Base64.strict_encode64
where no line feeds are added.Checklist
If you have questions, please file a support ticket, or create a GitHub Issue in this repository.