Send/Receive Emails
This handler (com.rierino.handler.MailEventHandler) provides ability to send and receive emails using existing email servers.
Handler Parameters
system
Name of the system describing email server access details
gmail
-
sendOnly
Whether the handler should only send emails without receiving them
true
false
This handler requires the following dependency added to deployment contents:
Actions
SendEmail
using the configured email server. Event metadata fields applicable for this action are as follows:
inputElement
Json path for the input in request event payload
parameters
-
With event metadata parameters as:
inputPattern
JMESPath pattern to apply on data input
{"from": from, "replyTo": replyTo, "to": to, "cc": cc, "subject": subject, "charset": charset, "text": text, "html": html}
-
ReceiveEmail
of a specific email with given UID using the configured email server. Event metadata fields applicable for this action are as follows:
inputElement
Json path for the input in request event payload
parameters
-
outputElement
Json path for the output in response event payload
result
-
With event metadata parameters as:
idPath
Json path for the id field in input element
mail.id
id
noContent
Whether to discard email content details
true
false
outputPattern
JMESPath pattern to apply on data output, before returning response
-
-
Last updated