Liking cljdoc? Tell your friends :D

district-sendgrid

Build Status

Helper functions for sending emails via Sendgrid API.

Installation

This module is available as a Maven artifact from Clojars. The latest released version is: Clojars Project

Include [district.sendgrid] in your CLJS file, where you use mount/start

district.sendgrid

send-email [opts]

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

Can you improve this documentation? These fine people already did:
madvas & filip
Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close