dylanshine / sendgrid_mailer

MIT License
6 stars 14 forks source link

Status code 400 to Request without content. #4

Closed marciotrix77 closed 3 years ago

marciotrix77 commented 3 years ago

Hi @dylanshine. If we send an email without the content, the SendGrid API returns status code = 400 (Bad request). For this reason, I believe that content needs to be mandatory in the constructor of the Email class.

dylanshine commented 3 years ago

@marciotrix77 This is the case if you don't provide a template.