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:
:from
From email address:to
To email address:subject
Email subject:content
Main content of email:substitutions
Map defining template substituions:on-success
On success callback:on-error
On error callback:template-id
Sendgrid template ID:api-key
Sendgrid API key:print-mode?
If true, prints emails to console, instead of sending it