EmailApi (Email APIs)
sendEmail
Send email to recipient via the internally provision gateway of the workbench.
EmailApi.sendEmail(appName, email, subject, content,
template, fromAlias, templateParams)
or
EmailApi.sendEmail(appName, email, subject, content,
template, fromAlias, templateParams, senderEmail)
or
EmailApi.sendEmail(toEmail, subject, content)
or
EmailApi.sendEmail(toEmail, template,
emailParams, subject)parameters:
appName: name of the internal application (string)
email: email of the sender (string)
subject: subject of a email (string)
content: contents (string)
template: template to be used (string)
fromAlias: alias name (string)
templateParams: template parameters (dictionary)
senderEmail: sender email (string)
toEmail: to email (string)
emailParams : email params (dictionary)Return:
sendEmailMarkDownContent
Send email with markdown contents.
parameters:
Return:
sendEmailUsingFunction
Send email using the function
parameters:
Return:
getSubject
Get subject
parameters:
Return:
getProcessedEmailContentFromTemplate
get processed email content from template
parameters:
Return:
emailTemplateExists
check if the email template exits
parameters:
Return:
getEmailProps
get email props
parameters:
Return:
getServerName
get server name
parameters:
Return:
Last updated