Skip to content
This repository has been archived by the owner on Feb 9, 2023. It is now read-only.

Latest commit

 

History

History
31 lines (22 loc) · 1.1 KB

README.md

File metadata and controls

31 lines (22 loc) · 1.1 KB

district-sendgrid

CircleCI

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