---
title: TB Outgoing Mail Server
tags: ThingsBoard
image: https://i.imgur.com/JFZic3u.png
---
# Outgoing Mail Server Settings
[toc]
## Yandex
* Please create your yandex Application-Specific Password (**App passwords**) first.

* Login your ThingsBoard instance as a system administrator.

* System Settings > Mail Server
* Mail From (請就實際情況,輸入相對應資訊。)
* SMTP protocol: ==SMTPS==
* SMTP host: ==smtp.yandex.com==
* SMTP port: ==465==
* Enable TLS: optional, please choose TLSv1.2 or TLSv1.3 if you want to enable TLS
* passowrd is your app password
* Click Send test mail to see a message as below.

## Gmail
* Please create your Gmail Application-Specific Password first.
* Login Gmail > Manage your Google Account > Security
* Enable 2-Step Verification first
* Click App passwords to **GENERATE** it for ThingsBoard (16-character code)


* Login your ThingsBoard instance as a system administrator.
* System Settings > Mail Server
* Mail From (請就實際情況,輸入相對應資訊。)
* SMTP protocol: ==SMTPS==
* SMTP host: ==smtp.gmail.com==
* SMTP port: ==465==
* Enable TLS: optional, please choose TLSv1.2 or TLSv1.3 if you want to enable TLS
* username is your gmail (xxx@gmail.com)
* passowrd is your app password
## Reference
* https://youtu.be/lb52pzHUxmk
* https://thingsboard.io/docs/user-guide/ui/mail-settings/
* https://thingsboard.io/docs/user-guide/rule-engine-2-0/tutorials/send-email/
* https://thingsboard.io/docs/user-guide/rule-engine-2-0/tutorials/send-email-to-customer/