dylanshine / sendgrid_mailer

MIT License
6 stars 15 forks source link

Supoort sending contents data for Dynamic Template #2

Closed kazu0620 closed 4 years ago

kazu0620 commented 4 years ago

Thank you for publishing awsome package!

I tried to use Dynamic Templates feature via this package, but the package didn't have an interface to set the template data. Therefore, I added field of dynamic_template_data to Personalization.

Related official document

https://sendgrid.com/docs/ui/sending-email/how-to-send-an-email-with-dynamic-transactional-templates/#send-a-transactional-email

Official SDK's implementation in Java

https://github.com/sendgrid/sendgrid-java/blob/2d82397f32cd14efb7a5fc28fafa019613968f3a/src/main/java/com/sendgrid/helpers/mail/objects/Personalization.java#L36