Convenience functions for sending templated email messages. Each function here should represent a single email. NOTE: we want to keep this about email formatting, so don't put heavy logic here RE: building data for emails.
Convenience functions for sending templated email messages. Each function here should represent a single email. NOTE: we want to keep this about email formatting, so don't put heavy logic here RE: building data for emails.
(pulse->alert-condition-kwd
{:keys [alert_above_goal alert_condition card creator] :as alert})
Given an ALERT
return a keyword representing what kind of goal needs to be met.
Given an `ALERT` return a keyword representing what kind of goal needs to be met.
(render-alert-email timezone
{:keys [alert_first_only] :as alert}
results
goal-value)
Take a pulse object and list of results, returns an array of attachment objects for an email
Take a pulse object and list of results, returns an array of attachment objects for an email
(render-pulse-email timezone pulse results)
Take a pulse object and list of results, returns an array of attachment objects for an email
Take a pulse object and list of results, returns an array of attachment objects for an email
(send-admin-deleted-your-alert! alert
user
{:keys [first_name last_name] :as deletor})
Email to notify users when an admin has deleted their alert
Email to notify users when an admin has deleted their alert
(send-admin-unsubscribed-alert-email! alert
user-added
{:keys [first_name last_name] :as admin})
Send an email to USER-ADDED
letting them know ADMIN
has unsubscribed them from ALERT
Send an email to `USER-ADDED` letting them know `ADMIN` has unsubscribed them from `ALERT`
(send-alert-stopped-because-archived-email! alert
user
{:keys [first_name last_name]
:as archiver})
Email to notify users when a card associated to their alert has been archived
Email to notify users when a card associated to their alert has been archived
(send-alert-stopped-because-changed-email! alert
user
{:keys [first_name last_name]
:as archiver})
Email to notify users when a card associated to their alert changed in a way that invalidates their alert
Email to notify users when a card associated to their alert changed in a way that invalidates their alert
(send-follow-up-email! email msg-type)
Format and send an email to the system admin following up on the installation.
Format and send an email to the system admin following up on the installation.
(send-new-alert-email! {:keys [creator] :as alert})
Send out the initial 'new alert' email to the CREATOR
of the alert
Send out the initial 'new alert' email to the `CREATOR` of the alert
(send-new-user-email! invited invitor join-url)
Send an email to INVITIED letting them know INVITOR has invited them to join Metabase.
Send an email to INVITIED letting them know INVITOR has invited them to join Metabase.
(send-notification-email! email context)
Format and send an email informing the user about changes to objects in the system.
Format and send an email informing the user about changes to objects in the system.
(send-password-reset-email! email google-auth? hostname password-reset-url)
Format and send an email informing the user how to reset their password.
Format and send an email informing the user how to reset their password.
(send-user-joined-admin-notification-email! new-user & {:keys [google-auth?]})
Send an email to the INVITOR (the Admin who invited NEW-USER) letting them know NEW-USER has joined.
Send an email to the INVITOR (the Admin who invited NEW-USER) letting them know NEW-USER has joined.
(send-you-unsubscribed-alert-email! alert who-unsubscribed)
Send an email to WHO-UNSUBSCRIBED
letting them know they've unsubscribed themselves from ALERT
Send an email to `WHO-UNSUBSCRIBED` letting them know they've unsubscribed themselves from `ALERT`
(send-you-were-added-alert-email! alert
user-added
{:keys [first_name last_name]
:as admin-adder})
Send an email to USER-ADDED
letting them know ADMIN-ADDER
has added them to ALERT
Send an email to `USER-ADDED` letting them know `ADMIN-ADDER` has added them to `ALERT`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close