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:
A Result object indicating the success or failure of the email sending operation.