Since TB Version 2.0 |
Node sends incoming message using configured Mail Server. This Node works only with messages that where created using To Email transformation Node, please connect this Node with To Email Node using Success chain.
Configuration:
- Use system SMTP settings - if enabled default Mail Server configured on System level will be used
- Protocol - Mail Server transport protocol: SMTP or SMTPS
- SMTP host - Mail Server host
- SMTP port - Mail Server port
- Timeout ms - read timeout in milliseconds
- Enable TLS - if true, enables the use of the STARTTLS command (if supported by the server)
- Username - username for the account at the mail host, if any
- Password - password for the account at the mail host, if any
This Node can work with default Mail Server configured on System level. Please find more details about how to configure default System SMTP Settings.
If specific Mail Server is required for this node - disable Use system SMTP settings checkbox and configure Mail Server manually.
Additionally this node can create email attachments if incoming message has prepared attachments metadata field with reference to files stored in DataBase.
Multiple attachments supported. Use a comma separated no whitespace references (uuids) to send many files. Here an example of message metadata:
1
2
3
{
"attachments": "e18b6950-dfca-11eb-affb-8db134b46d68,17383b4c-6000-4bb8-be04-b1cb15aa18c5"
}
NOTE: This is part of File Storage feature supported by ThingsBoard Professional Edition.
In case of successful mail sending, original Message will be passed to the next nodes via Success chain, otherwise Failure chain is used.
You can see the real life example, where this node is used, in the next tutorial: