SMTP system¶
The SMTP system represents the information needed to connect to a SMTP server for sending emails. It is used in conjunction with the mail message sink to construct and send emails based on the entities it receives.
Prototype¶
{
"_id": "id-of-system",
"name": "Name of system",
"type": "system:smtp",
"smtp_server": "localhost",
"smtp_port": 25,
"smtp_username": null,
"smtp_password": null,
"use_tls": false,
"max_per_hour": 1000
}
Properties¶
Property |
Type |
Description |
Default |
Req |
---|---|---|---|---|
|
String |
Contains a |
“localhost” |
|
|
Integer |
The TCP port to use when talking to the |
25 |
|
|
String |
The username to use when authenticating with the |
||
|
String |
The password to use if |
Yes |
|
|
Boolean |
Indicating to the client to use |
false |
|
|
Integer |
The maximum number of messages to send for any hour. It is used for stopping run-away message sending in development or testing. Note that any message not sent will be logged but discarded. |
1000 |
Example configuration¶
{
"_id": "our-smtp-server",
"name": "Our SMTP Server",
"type": "system:smtp",
"smtp_server": "localhost",
"smtp_port": 25,
"smtp_username": "$ENV(username-variable)",
"smtp_password": $SECRET(password-variable)
"max_per_hour": 100000
}