Helper functions for sending emails via Sendgrid API.
This module is available as a Maven artifact from Clojars. The latest released version is:
Include [district.sendgrid] in your CLJS file, where you use mount/start
Sends request to Sendgrid to construct and send email from pre-defined template
opts:
:fromFrom email address:toTo email address:subjectEmail subject:contentMain content of email:substitutionsMap defining template substituions:on-successOn success callback:on-errorOn error callback:template-idSendgrid template ID:api-keySendgrid API key:print-mode?If true, prints emails to console, instead of sending it