SmtpConnectionPool
The SmtpConnectionPool
is used to define and configure an SMTP mail server. It is used by the EmailDataSink
to send e-mail messages.
Configuration
Name | Type, usage constraints, defaults | Description |
---|---|---|
connectionUrl | required: paraVal default: none type: smtp(s) URL | The URL defining the server's hostname and port. For example: <smtp://hostname:25> or <smtps://hostname:465> . |
username | optional: paraVal default: none type: string | The username used to authenticate with the SMTP server. |
password | optional: paraVal default: none type: string sensitive: true | The password used to authenticate with the SMTP server. |
sslSettings | optional: paraMap default: none type: string/string | The SSL configuration settings used for this connection pool. It uses the Java system property names to set up the key and trust stores. |
Example
Example using an unencrypted connection:
<object type="SmtpConnectionPool" name="mailService">
<dp:paraVal name="connectionUrl" value="smtp://myhost.ch:25"/>
</object>
Example using an SSL connection:
<object type="SmtpConnectionPool" name="mailService">
<dp:paraVal name="connectionUrl" value="smtps://localhost:465"/>
<dp:paraVal name="username" value="mail-user"/>
<dp:paraVal name="password" value="secret"/>
<dp:paraMap name="sslSettings">
<value name="javax.net.ssl.trustStore" value="truststore.jks"/>
<value name="javax.net.ssl.trustStorePassword" value="secret"/>
<value name="javax.net.ssl.trustStoreType" value="jks"/>
</dp:paraMap>
</object