{"id":121883,"date":"2023-02-17T14:05:44","date_gmt":"2023-02-17T14:05:44","guid":{"rendered":"https:\/\/randomnerdtutorials.com\/?p=121883"},"modified":"2023-02-17T14:14:33","modified_gmt":"2023-02-17T14:14:33","slug":"send-notifications-esp32","status":"publish","type":"post","link":"https:\/\/randomnerdtutorials.com\/send-notifications-esp32\/","title":{"rendered":"7 Different Ways to Send Notifications with the ESP32"},"content":{"rendered":"\n<p>In this guide, we&#8217;ll show you seven different ways to send notifications with the ESP32. We&#8217;ll cover sending SMS, emails, WhatsApp messages, and Telegram messages. We&#8217;ll show you different options for each notification type.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" fetchpriority=\"high\" decoding=\"async\" width=\"1200\" height=\"675\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/ESP32-Send-Notifications.jpg?resize=1200%2C675&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"7 Different Ways to Send Notifications with the ESP32\" class=\"wp-image-121896\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/ESP32-Send-Notifications.jpg?w=1280&amp;quality=100&amp;strip=all&amp;ssl=1 1280w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/ESP32-Send-Notifications.jpg?resize=300%2C169&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/ESP32-Send-Notifications.jpg?resize=1024%2C576&amp;quality=100&amp;strip=all&amp;ssl=1 1024w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/ESP32-Send-Notifications.jpg?resize=768%2C432&amp;quality=100&amp;strip=all&amp;ssl=1 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/figure><\/div>\n\n\n<p><strong>Table of Contents<\/strong><\/p>\n\n\n\n<p>In this tutorial, we&#8217;ll cover the following notification methods:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><a href=\"#email\">Email<\/a>:<\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>1<\/strong> &#8211; ESP32: Send emails using an SMTP server<\/li>\n\n\n\n<li><strong>2<\/strong> &#8211; ESP32: Send emails with IFTTT<\/li>\n\n\n\n<li><strong>3<\/strong> &#8211; ESP32: Send emails using a PHP server<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong><a href=\"#telegram\">Telegram<\/a>:<\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>4<\/strong> &#8211; ESP32: Send Telegram messages (using Telegram API)<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong><a href=\"#whatsapp\">WhatsApp<\/a><\/strong>:\n<ul class=\"wp-block-list\">\n<li><strong>5<\/strong> &#8211; ESP32: Send WhatsApp messages (using callmebot API)<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong><a href=\"#sms\">SMS<\/a>:<\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>6<\/strong> &#8211; ESP32: Send SMS using a modem (SIM800L and SIM7000G)<\/li>\n\n\n\n<li><strong>7<\/strong> &#8211; ESP32: Send SMS using Twilio API<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"email\">Send Emails with the ESP32<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"712\" height=\"399\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2023\/01\/BME280-Sensor-Readings-Email.jpg?resize=712%2C399&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"test email sent from EPS32 ESP8266 NodeMCU using MicroPython inbox\" class=\"wp-image-124757\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2023\/01\/BME280-Sensor-Readings-Email.jpg?w=712&amp;quality=100&amp;strip=all&amp;ssl=1 712w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2023\/01\/BME280-Sensor-Readings-Email.jpg?resize=300%2C168&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 712px) 100vw, 712px\" \/><\/figure><\/div>\n\n\n<p>There are different methods to send emails with the ESP32. <\/p>\n\n\n\n<p><strong><a href=\"https:\/\/randomnerdtutorials.com\/esp32-send-email-smtp-server-arduino-ide\/\">SMTP Server<\/a><\/strong><\/p>\n\n\n\n<p>Our preferred method is using an SMTP server. SMTP means <em>Simple Mail Transfer Protocol<\/em> and it is an internet standard for email transmission. To send emails using an ESP32, you can connect it to an SMTP Server. <\/p>\n\n\n\n<p>Check the following tutorial to learn how to send emails with the ESP32 using an SMTP server:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/randomnerdtutorials.com\/esp32-send-email-smtp-server-arduino-ide\/\">ESP32 Send Emails using an SMTP Server<\/a><\/li>\n<\/ul>\n\n\n\n<p>We also have a similar tutorial using MicroPython firmware:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/randomnerdtutorials.com\/micropython-send-emails-esp32-esp826\/\" title=\"\">MicroPython: Send Emails with the ESP32\/ESP826<\/a><\/li>\n<\/ul>\n\n\n\n<p><strong><a href=\"https:\/\/randomnerdtutorials.com\/esp32-door-status-monitor-email\/\">IFTTT (Webhooks and email service)<\/a><\/strong><\/p>\n\n\n\n<p>Another alternative method is using IFTTT (If this then that). You can create an applet on IFTTT that will send you an email when you make a request to the webhooks service. If you want to experiment with this method, check the following tutorial:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/randomnerdtutorials.com\/esp32-door-status-monitor-email\/\">ESP32: Email Notifications using IFTTT<\/a><\/li>\n<\/ul>\n\n\n\n<p><strong><a href=\"https:\/\/randomnerdtutorials.com\/esp32-esp8266-send-email-notification\/\">PHP Server<\/a><\/strong><\/p>\n\n\n\n<p>You can create a PHP server that will send you emails upon an ESP32 request. You can use a cloud server or a local server on a Raspberry Pi, for example. Check the tutorial below:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/randomnerdtutorials.com\/esp32-esp8266-send-email-notification\/\">ESP32\/ESP8266 Send Email Notification using PHP Script<\/a><\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"telegram\">Send Messages to Telegram with the ESP32<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/09\/telegram-logo.png?resize=150%2C150&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"telegram logo\" class=\"wp-image-106943\"\/><\/figure><\/div>\n\n\n<p><a href=\"https:\/\/telegram.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">Telegram<\/a>&nbsp;Messenger is a cloud-based instant messaging and voice-over IP service. You can easily install it on your smartphone (Android and iPhone) or computer (PC, Mac, and Linux). It is free and without any ads. Telegram allows you to create bots that you can interact with.<\/p>\n\n\n\n<p>\u201c<em>Bots are third-party applications that run inside Telegram. Users can interact with bots by sending them messages, commands, and&nbsp;inline requests. You control your bots using HTTPS requests to Telegram Bot API<\/em>\u201c.<\/p>\n\n\n\n<p>So, you just need to make some HTTP requests with the ESP32 to be able to send messages to your Telegram account. The ESP32 can also listen to messages that you send to your bot. So, you can also control your boards by sending messages via Telegram.<\/p>\n\n\n\n<p>We have several tutorials showing how to use the Telegram API for different purposes:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/randomnerdtutorials.com\/telegram-esp32-motion-detection-arduino\/\">Telegram: ESP32 <strong>Motion Detection with Notifications<\/strong><\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/randomnerdtutorials.com\/telegram-control-esp32-esp8266-nodemcu-outputs\/\">Telegram: <strong>Control <\/strong>ESP32 <strong>Outputs<\/strong><\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/randomnerdtutorials.com\/telegram-group-esp32-esp8266\/\">Telegram Group: Control ESP32 Outputs<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/randomnerdtutorials.com\/esp32-door-status-telegram\/\">ESP32 Door Status Monitor with Telegram Notifications<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/randomnerdtutorials.com\/telegram-esp32-cam-photo-arduino\/\">Telegram: ESP32-CAM Take and <strong>Send Photo<\/strong><\/a><\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"whatsapp\">Send Messages to WhatsApp with the ESP32<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"200\" height=\"200\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/09\/Whatsapp-logo.png?resize=200%2C200&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"WhatsApp logo\" class=\"wp-image-116773\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/09\/Whatsapp-logo.png?w=200&amp;quality=100&amp;strip=all&amp;ssl=1 200w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/09\/Whatsapp-logo.png?resize=150%2C150&amp;quality=100&amp;strip=all&amp;ssl=1 150w\" sizes=\"(max-width: 200px) 100vw, 200px\" \/><\/figure><\/div>\n\n\n<p>\u201cWhatsApp Messenger, or simply WhatsApp, is an internationally available American freeware, cross-platform centralized instant messaging and voice-over-IP service owned by Meta Platforms.\u201d It allows you to send messages using your phone\u2019s internet connection, so you can avoid SMS fees.<\/p>\n\n\n\n<p>There are different ways to send messages to WhatsApp using the ESP32. We&#8217;ve experimented with the <a href=\"https:\/\/www.callmebot.com\/\">callmebot API<\/a> and it worked pretty well. You can check our tutorial that explains how to send messages to WhatsApp with the ESP32:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/randomnerdtutorials.com\/esp32-send-messages-whatsapp\/\">ESP32: Send Messages to WhatsApp<\/a><\/li>\n<\/ul>\n\n\n\n<p>We also have an example using MicroPython firmware:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/randomnerdtutorials.com\/micropython-whatsapp-esp32-esp826\/\" title=\"\">MicroPython: Send Messages to WhatsApp with the ESP32\/ESP826<\/a><\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"sms\">Send an SMS with the ESP32<\/h2>\n\n\n\n<p>To send SMS with the ESP32, you can connect it to a modem and use a SIM card or use a third-party service.<\/p>\n\n\n\n<p>There are several modules for the ESP32 that allow you to connect a SIM card. There are also ESP32 development boards that come with a built-in modem like the SIM800L or SIM7000G. To send SMS with these modules, you need a SIM card with an SMS plan or credit.<\/p>\n\n\n\n<p>We have tutorials showing how to send SMS with the ESP32 SIM800L and ESP32 SIM7000G. Check them below:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/randomnerdtutorials.com\/esp32-sim800l-send-text-messages-sms\/\">ESP32 SIM800L: Send Text Messages (SMS Alert) with Sensor Readings<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/randomnerdtutorials.com\/lilygo-t-sim7000g-esp32-lte-gprs-gps\/\">LILYGO T-SIM7000G ESP32: Send SMS<\/a><\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"199\" height=\"60\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/twilio-logo.png?resize=199%2C60&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"twilio logo\" class=\"wp-image-120949\"\/><\/figure><\/div>\n\n\n<p>Another alternative is to use a third-party service that will send the SMS for you. You just need to make HTTP requests to their API to use their services. We have a tutorial showing how to send SMS with the ESP32 using Twilio services (these are not free, but they provide you with some credit so that you can experiment with the service).<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/randomnerdtutorials.com\/send-sms-esp32-twilio\/\" title=\"\">Send SMS with the ESP32 (Twilio)<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Wrapping Up<\/h2>\n\n\n\n<p>In this article, we&#8217;ve shown you different ways to send notifications with the ESP32. We&#8217;ve covered sending emails, messages to Telegram, messages to WhatsApp, and SMS.<\/p>\n\n\n\n<p>Sending notifications with the ESP32 is a very useful feature. For example, to send an alert when motion is detected, when a sensor is above or below a certain threshold value, or to send you messages periodically with sensor values or GPIO states.<\/p>\n\n\n\n<p>We hope you&#8217;ve found this compilation useful.<\/p>\n\n\n\n<p>Learn more about the ESP32 with our resources:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/randomnerdtutorials.com\/learn-esp32-with-arduino-ide\/\">Learn ESP32 with Arduino IDE<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/randomnerdtutorials.com\/build-web-servers-esp32-esp8266-ebook\/\">Build Web Servers with ESP32 and ESP8266<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/randomnerdtutorials.com\/firebase-esp32-esp8266-ebook\/\">Firebase Web App with ESP32 and ESP8266<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/randomnerdtutorials.com\/projects-esp32\/\">Free ESP32 Projects and Tutorials<\/a><\/li>\n<\/ul>\n\n\n\n<p>Thanks for reading.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this guide, we&#8217;ll show you seven different ways to send notifications with the ESP32. We&#8217;ll cover sending SMS, emails, WhatsApp messages, and Telegram messages. We&#8217;ll show you different options &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"7 Different Ways to Send Notifications with the ESP32\" class=\"read-more button\" href=\"https:\/\/randomnerdtutorials.com\/send-notifications-esp32\/#more-121883\" aria-label=\"Read more about 7 Different Ways to Send Notifications with the ESP32\">CONTINUE READING \u00bb<\/a><\/p>\n","protected":false},"author":5,"featured_media":121896,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[276,281,277,299,264],"tags":[],"class_list":["post-121883","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-esp32","category-esp32-project","category-esp32-arduino-ide","category-0-esp32","category-project"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/ESP32-Send-Notifications.jpg?fit=1280%2C720&quality=100&strip=all&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/121883","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/comments?post=121883"}],"version-history":[{"count":11,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/121883\/revisions"}],"predecessor-version":[{"id":127684,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/121883\/revisions\/127684"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/media\/121896"}],"wp:attachment":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/media?parent=121883"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/categories?post=121883"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/tags?post=121883"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}