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

district0x/district-sendgrid

Repository files navigation

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

Releases

No releases published

Packages

No packages published