beam-community / bamboo

Testable, composable, and adapter based Elixir email library for devs that love piping.
https://hex.pm/packages/bamboo
MIT License
1.9k stars 343 forks source link

Bamboo.SentEmailViewerPlug with SendGrid Dyanmic Templates #619

Open LandonSchropp opened 2 years ago

LandonSchropp commented 2 years ago

I'm using SendGrid dynamic templates to send my emails. Using it has been a breeze except for one small thing—the SentEmailViewerPlug seems to only display HTML bodies.

The meat and potatoes of my emails are all contained in the email.private.send_grid_template.dynamic_template_data map. Is there any way I can configure SentEmailViewerPlug to display the email's dyamic_template_data instead of the HTML body?

Thanks!