Skip to main content
Version: 2.17.x.x LTS

EmailDataSink

The EmailDataSink sends a configurable text message to a configurable set of e-mail addresses in normal, CC or BCC mode.

Configuration

NameType, usage constraints, defaultsDescription
servicerequired: paraVal
default: none
type: SmtpConnectionPool
The SMTP server to use.
subjectoptional: paraVal
default: none
type: string
The subject of the e-mail message.
textoptional: paraVal
default: none
type: string
The plaintext body of the message.
textEncodingoptional: paraVal
default: utf-8
type: string
A string describing the encoding type of the text message. Defaults to UTF-8.
fromoptional: paraVal
default: none
type: e-mail address
The sender's e-mail address.
to, cc, bccoptional: paraList
default: none
type: list of e-mail addresses
The recipient's e-mail addresses in either normal, CC or BCC mode.

Example

<dataSink type="EmailDataSink">
<dp:paraVal name="service" value="${inst.smtpService}" />
<dp:paraVal name="subject" value="Greetings" />
<dp:paraVal name="text" value="Hello #{out.mail.name}
This is a greeting from nevisDataPorter.
Best regards.
nevisDataPorter" />
<dp:paraVal name="to" value="[email protected]" />
<dp:paraList name="to">
<value>#{in.opa.email}</value>
</dp:paraList>
</dataSink>