--- 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. ![](https://i.imgur.com/x7tJVfD.png) * Login your ThingsBoard instance as a system administrator. ![](https://i.imgur.com/iQP7m5a.png) * 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. ![](https://i.imgur.com/JFZic3u.png) ## 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) ![](https://i.imgur.com/C6MA1ii.png) ![](https://i.imgur.com/2G8hcBS.png) * 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/