SendAid

controllers/sendaid~ SendAid

new SendAid()

Source:

Provides support functions for sending emails/sms/etc.

Methods

(async) sendMail(mailobj)

Source:

Send an email object

Parameters:
Name Type Description
mailobj object

suitable for sending to mailTransport.sendMail

Returns:

jrResult holding success or error

(async) sendMessage(jrContext, recipient, subject, message, extraData, flagBypassRateLimitChecks)

Source:

Send a message to a recipient The mechanism is usually email, but could be sms, etc. based on recipient object

Parameters:
Name Type Description
jrContext JrContext
recipient object
subject string
message string
extraData object
flagBypassRateLimitChecks boolean