Liking cljdoc? Tell your friends :D

metabase.email.messages

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.
raw docstring

pulse->alert-condition-kwdclj

(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.
sourceraw docstring

render-alert-emailclj

(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
sourceraw docstring

render-pulse-emailclj

(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
sourceraw docstring

send-admin-deleted-your-alert!clj

(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
sourceraw docstring

send-admin-unsubscribed-alert-email!clj

(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`
sourceraw docstring

send-alert-stopped-because-archived-email!clj

(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
sourceraw docstring

send-alert-stopped-because-changed-email!clj

(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
sourceraw docstring

send-follow-up-email!clj

(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.
sourceraw docstring

send-new-alert-email!clj

(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
sourceraw docstring

send-new-user-email!clj

(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.
sourceraw docstring

send-notification-email!clj

(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.
sourceraw docstring

send-password-reset-email!clj

(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.
sourceraw docstring

send-user-joined-admin-notification-email!clj

(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.
sourceraw docstring

send-you-unsubscribed-alert-email!clj

(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`
sourceraw docstring

send-you-were-added-alert-email!clj

(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`
sourceraw docstring

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

× close