public class EmailActionPack extends Object
com.cultofbits.integrationm.service.properties
com.cultofbits.genesis.comm.properties
Configuring com.cultofbits.integrationm.service.properties
:
action.names=...,<email-ap-name> action.<email-ap-name>=email action.<email-ap-name>.email.default-sender=<the email address as default sender> (Required)
Configuring com.cultofbits.genesis.comm.properties
:
mail.server.host=<mail server host> mail.server.protocol=<mail communication protocol: smtp, pop, imap> mail.server.port=<mail server port> mail.server.startTls=<supports tls: true, false> mail.server.auth=<if requires authentication: true, false> mail.server.username=<email username> mail.server.password=<email password>
Recomended email-ap-name: email
In case <email-ap-name> is email, in the IntegrationM scripts, you can refer to it only by `email.send(...)` otherwise you have to refer to it using `actionpacks.<email-ap-name>.send(...)`
Constructor and Description |
---|
EmailActionPack(com.cultofbits.genesis.comm.EmailService emailService,
String defaultSender) |
Modifier and Type | Method and Description |
---|---|
void |
send(String subject,
String body,
Map<String,Object> options)
Sends an email to the provided destinations.
|
public EmailActionPack(com.cultofbits.genesis.comm.EmailService emailService, String defaultSender)
public void send(String subject, String body, Map<String,Object> options)
The acceptable options are:
Map
of additional email headers. The map keys are String, representing the header names, and the values are a List of strings,
representing the header values.subject
- the email subjectbody
- the email bodyoptions
- the email options map.Copyright © 2021 Cult Of Bits, lda