EmailDataSink
The EmailDataSink
sends a configurable text message to a configurable set of e-mail addresses in normal, CC or BCC mode.
Configuration
Name | Type, usage constraints, defaults | Description |
---|---|---|
service | required: paraVal default: none type: SmtpConnectionPool | The SMTP server to use. |
subject | optional: paraVal default: none type: string | The subject of the e-mail message. |
text | optional: paraVal default: none type: string | The plaintext body of the message. |
textEncoding | optional: paraVal default: utf-8 type: string | A string describing the encoding type of the text message. Defaults to UTF-8. |
from | optional: paraVal default: none type: e-mail address | The sender's e-mail address. |
to, cc, bcc | optional: 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>