Open-source IoT Platform

Device management, data collection, processing and visualization
for your IoT projects
Learn about Thingsboard

Wednesday, December 21, 2016

Email Plugin Configuration

In this short tutorial we will explain how to configure Email Plugin to distribute alarms to recepients via email. We will use Live Demo Thignsboard server and SendGrid SMTP API in this tutorial. The Email plugin implementation is based on Java Mail and may be easily configured to other mail servers.

SMTP server parameters

Step 1. Get your SendGrid account.

We assume you have SendGrid account. You can sign-up for trial using this link.

Step 2. Configure SMTP Relay

Once logged in open SMTP relay configuration page. Follow instructions on the page to get the API Key. Save the API key somewhere.

Plugin Configuration

Step 3. Login to Live Demo server

Login to Live Demo server using Tenant Administrator account (the one that you created during sign-up).

Step 4. Create new Mail Plugin instance

Open Plugins page and click on big red “+” button. Populate plugin name and description.


Once you choose the corresponding plugin type, the form will expand. Populate values as shown below. Use API key as a password.

NOTE Since demo instance is hosted on Google Cloud, you need to specify 2525 port. All other SMTP related ports are blocked.


Don’t forget to add other mail properties that will force secure connection.


Click on “Add” button.

Step 5. Activate new plugin

Once plugin is saved successfully, don’t forget to activate it by clicking on “Activate” button.


Next Steps

Explore next tutorial to provision basic rules and generate emails based on sensor readings.


Once you configure you plugin and corresponding rules, you may review statistics and events on plugin details page. If you have configured something wrong, you should see errors logged on the corresponding tab:


Your feedback

If you found this article interesting, please leave your feedback in the comments section, post questions or feature requests on the forum and “star” our project on the github in order to stay tuned for new releases and tutorials.


  1. Thanks for this detailed instruction! I’ve stuck with another problem. For a long time I’d been using Live Mail but its functionality cannot be compared with that of Microsoft Outlook, which offers incomparably more in terms of collaboration, integration with corporate environments, control over mailboxes and other aspects of mail exchange. Luckily, I’ve found program that helped me to deal with migrating windows live mail to outlook more info here. It covers all stages of the process, including the location of the source data files, extraction of emails and attachments to a temporary location, file conversion and exporting the data to an Outlook profile. I’ve never worked with email conversion tools but this utility was quite easy to handle.

  2. Friends, I am proud to announce the triumph of my medical essay, fueled by the remarkable example I found at This resource on bipolar disorder's etiology and evidence-based treatment approach guided my research and helped me craft an exceptional essay. Don't miss out on this valuable source of knowledge that can elevate your academic pursuits.

  3. I found this tutorial on how to configure the Email Plugin for Thingsboard to be very helpful. I'm currently working on an IoT product development project and I plan to use this plugin to send alarms to recipients via email. I'm also glad that the tutorial uses the Live Demo Thingsboard server and SendGrid SMTP API. This makes it easy to follow along and test the configuration. I'm sure this tutorial will be helpful to other IoT developers who are looking to configure the Email Plugin for Thingsboard.

  4. The blogger provides a clear and concise guide on configuring an Email Plugin for distributing alarms via email, ensuring a secure connection and using the 2525 port for Google Cloud hosting. Abogados de Accidentes de Semirremolques

  5. Thank you for providing this comprehensive set of instructions. I have encountered another predicament. I have been utilizing Live Mail for an connections puzzle extended duration, nevertheless, its performance does not hold up against that of Microsoft Outlook. The latter provides much superior features in terms of collaboration, integration with corporate environments, control over mailboxes, and other areas of mail exchange.

  6. I learn some new stuff from it too, thanks for sharing your information. brick masonry company

  7. Sign up for a SendGrid account and suika game obtain your API key. This key will be used to authenticate your requests to the SendGrid SMTP API.

  8. fairfax divorce attorney
    The title "Email Plugin Configuration" is clear and concise, effectively communicating the content's focus. The content offers practical guidance on configuring email plugins, with step-by-step instructions if applicable. Platform specifics are provided for platform-specific content, ensuring accurate targeting. User engagement is encouraged through sharing experiences and asking questions, creating a supportive community around the topic. Overall, the content provides a practical resource for those seeking assistance in configuring email plugins.

  9. Ensure seamless ||How Quickly Can You Get A Divorce in New York||How Much is It for A Divorce in New York communication by configuring the Email Plugin with accurate SMTP server details, email credentials, and encryption settings to guarantee reliable and secure email delivery.

  10. Discover a collection of the finest off-plan properties for sale in Dubai. Invest in your future with our diverse range of off-plan developments, offering prime luxury, innovative design, and prime locations. Invest in Dubai

  11. It is included very nice post with a lot of our resources.thanks for share. i enjoy this post. commercial tiling

  12. cool math games offers an engaging and straightforward experience that emphasizes the importance of logical reasoning and thoughtful problem-solving.

  13. Seems like you're navigating through a maze of confusion, just like our Red Ball 4 hero! Don't worry, sometimes the missing piece is just waiting to be discovered. Keep rolling forward, and you'll overcome this challenge in no time!