{"id":2245,"date":"2024-03-04T07:28:19","date_gmt":"2024-03-04T07:28:19","guid":{"rendered":"https:\/\/www.niraltek.com\/blog\/?p=2245"},"modified":"2024-09-16T13:48:29","modified_gmt":"2024-09-16T13:48:29","slug":"revolutionizing-monitoring-with-the-esp32-a-smart-solution-for-digital-input-management-and-email-notifications","status":"publish","type":"post","link":"https:\/\/www.niraltek.com\/blog\/revolutionizing-monitoring-with-the-esp32-a-smart-solution-for-digital-input-management-and-email-notifications\/","title":{"rendered":"How to Send an email with ESP32"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"2245\" class=\"elementor elementor-2245\">\n\t\t\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-094da61 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"094da61\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2077858\" data-id=\"2077858\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-b782ad3 elementor-widget elementor-widget-text-editor\" data-id=\"b782ad3\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.8.0 - 30-10-2022 *\/\n.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:#818a91;color:#fff}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap{color:#818a91;border:3px solid;background-color:transparent}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap{margin-top:8px}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap-letter{width:1em;height:1em}.elementor-widget-text-editor .elementor-drop-cap{float:left;text-align:center;line-height:1;font-size:50px}.elementor-widget-text-editor .elementor-drop-cap-letter{display:inline-block}<\/style>\t\t\t\t<h5>Introduction:<\/h5>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-bc90da9 elementor-widget elementor-widget-text-editor\" data-id=\"bc90da9\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>In the realm of digital input monitoring and notifications, precision and timeliness are paramount. Enter the ESP32-Based Digital Input Monitoring and Email Notification System. Seamlessly integrating advanced microcontroller capabilities with robust communication protocols, this system offers unparalleled efficiency in monitoring and alerting.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-beac02c elementor-widget elementor-widget-text-editor\" data-id=\"beac02c\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h5>Components Used:<\/h5>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1416680 elementor-widget elementor-widget-text-editor\" data-id=\"1416680\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<ol><li>ESP32: Microcontroller for handling the communication and logic.<\/li><li>RS485 MAX: RS485 transceiver for serial communication.<\/li><li>4DI 4DO TO RS485 Module: Module for interfacing digital inputs and outputs with RS485 communication.<\/li><\/ol>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-dd1d034 elementor-widget elementor-widget-text-editor\" data-id=\"dd1d034\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h5>Pin Connections:<\/h5>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e4a5895 elementor-widget elementor-widget-image\" data-id=\"e4a5895\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.8.0 - 30-10-2022 *\/\n.elementor-widget-image{text-align:center}.elementor-widget-image a{display:inline-block}.elementor-widget-image a img[src$=\".svg\"]{width:48px}.elementor-widget-image img{vertical-align:middle;display:inline-block}<\/style>\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"640\" height=\"360\" src=\"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2024\/03\/Meter-1-768x432.png\" class=\"attachment-medium_large size-medium_large\" alt=\"\" loading=\"lazy\" srcset=\"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2024\/03\/Meter-1-768x432.png 768w, https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2024\/03\/Meter-1-300x169.png 300w, https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2024\/03\/Meter-1-1024x576.png 1024w, https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2024\/03\/Meter-1-1536x864.png 1536w, https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2024\/03\/Meter-1.png 1920w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-e84b45a elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"e84b45a\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2014882\" data-id=\"2014882\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-fe5cb99 elementor-widget elementor-widget-text-editor\" data-id=\"fe5cb99\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h5>1. ESP32 to RS485 :<\/h5>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-106311c elementor-widget elementor-widget-text-editor\" data-id=\"106311c\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>&#8211; GPIO19 to DE (Driver Enable)<\/p><p>&#8211; GPIO18 to RE (Receiver Enable)<\/p><p>&#8211; GPIO17 to DI (Data In)<\/p><p>&#8211; GPIO16 to RO (Receive Out)<\/p><p>&#8211; V5 to VCC<\/p><p>&#8211; GND to GND<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b09edee elementor-widget elementor-widget-text-editor\" data-id=\"b09edee\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h5>2. RS485 to 4DI 4DO TO RS485 Module :<\/h5>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f863b36 elementor-widget elementor-widget-text-editor\" data-id=\"f863b36\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>&#8211; A to A<\/p><p>&#8211; B to B<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-0198e31 elementor-widget elementor-widget-text-editor\" data-id=\"0198e31\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h5>3. Digital Inputs to 4DI 4DO TO RS485 Module :<\/h5>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d5071c4 elementor-widget elementor-widget-text-editor\" data-id=\"d5071c4\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>\u00a0 &#8211; Digital Input Power (+) to D1 (Digital Input 1)<\/p><p>\u00a0 \u00a0&#8211; Digital Input Power (-) to C (Digital Input Common)<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-dfa9a1f elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"dfa9a1f\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b0c1d37\" data-id=\"b0c1d37\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-89c9be4 elementor-widget elementor-widget-text-editor\" data-id=\"89c9be4\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h5>Exploring the Components :<\/h5>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e4e97ef elementor-widget elementor-widget-text-editor\" data-id=\"e4e97ef\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>The system leverages cutting-edge components including the ESP32 microcontroller, RS485 transceiver, and the 4DI 4DO TO RS485 Module. With each component meticulously selected for optimal performance, reliability is guaranteed.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-145360d elementor-widget elementor-widget-text-editor\" data-id=\"145360d\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h5>Unraveling the Workflow :<\/h5>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-0af6ce7 elementor-widget elementor-widget-text-editor\" data-id=\"0af6ce7\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>From initialization to email transmission, the system orchestrates a fluid workflow. Through a series of meticulously crafted steps, it establishes WiFi connectivity, configures email settings, and diligently monitors digital input statuses.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e4c2a51 elementor-widget elementor-widget-text-editor\" data-id=\"e4c2a51\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h5>Firmware :<\/h5>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-a42df00 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"a42df00\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4691077\" data-id=\"4691077\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-2de1103 elementor-widget elementor-widget-text-editor\" data-id=\"2de1103\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div style=\"background-color: #f5f5f5; border: 1px solid #cccccc; border-radius: 4px; padding: 15px; margin-bottom: 15px;\"><p>#include\u00a0&lt;Arduino.h&gt;<br \/>#include\u00a0&lt;ModbusMaster.h&gt;<br \/>#include\u00a0&lt;WiFi.h&gt;<br \/>#include\u00a0&lt;ESP_Mail_Client.h&gt;<br \/>#include\u00a0&lt;WiFiClientSecure.h&gt;<\/p><p>#define DE_PIN 19<br \/>#define RE_PIN 18<\/p><p>#define MODBUS_ID 1<\/p><p>void postTransmission()<br \/>{<br \/>digitalWrite(RE_PIN, LOW);<br \/>digitalWrite(DE_PIN, LOW);<br \/>}<\/p><p>void preTransmission()<br \/>{<br \/>digitalWrite(RE_PIN, HIGH);<br \/>digitalWrite(DE_PIN, HIGH);<br \/>}<\/p><p>#define WIFI_SSID &#8220;your_ssid&#8221;<br \/>#define WIFI_PASSWORD &#8220;your_password&#8221;<\/p><p>#define SMTP_server &#8220;smtp.gmail.com&#8221;<br \/>#define SMTP_Port 465<\/p><p>#define sender_email &#8220;your_mail&#8221;<br \/>#define sender_password &#8220;your_password&#8221;<\/p><p>#define Recipient_email &#8220;receiver_mail&#8221;<br \/>#define Recipient_name &#8220;receiver_name&#8221;<\/p><p>ModbusMaster node;<br \/>SMTPSession smtp;<br \/>ESP_Mail_Session session;<\/p><p>bool initialD1State = false;<\/p><p>bool initialEmailSent = false;<\/p><p>void setupWiFi();<br \/>void setupEmail();<\/p><p>void sendMail(const char* subject, const char* content);<br \/>void checkAndSendEmail();<\/p><p>void setup()<br \/>{<br \/>Serial.begin(115200);<br \/>Serial2.begin(9600, SERIAL_8N1);<br \/>node.begin(MODBUS_ID, Serial2);<\/p><p>pinMode(DE_PIN, OUTPUT);<br \/>pinMode(RE_PIN, OUTPUT);<\/p><p>digitalWrite(RE_PIN, LOW);<br \/>digitalWrite(DE_PIN, LOW);<\/p><p>node.preTransmission(preTransmission);<br \/>node.postTransmission(postTransmission);<\/p><p>setupWiFi();<br \/>setupEmail();<br \/>}<\/p><p>void loop()<br \/>{<br \/>checkAndSendEmail();<br \/>delay(1000);<br \/>}<\/p><p>void setupWiFi()<br \/>{<br \/>Serial.print(&#8220;Connecting to WiFi&#8230;&#8221;);<br \/>WiFi.begin(WIFI_SSID, WIFI_PASSWORD);<br \/>while (WiFi.status() != WL_CONNECTED)<br \/>{<br \/>Serial.print(&#8220;.&#8221;);<br \/>delay(200);<br \/>}<br \/>Serial.println(&#8220;\\nWiFi connected.&#8221;);<br \/>}<\/p><p>void setupEmail()<br \/>{<br \/>smtp.debug(1);<\/p><p>session.server.host_name = SMTP_server;<br \/>session.server.port = SMTP_Port;<br \/>session.login.email = sender_email;<br \/>session.login.password = sender_password;<br \/>session.login.user_domain = &#8220;&#8221;;<br \/>}<\/p><p>void sendMail(const char* subject, const char* content)<br \/>{<br \/>SMTP_Message message;<\/p><p>message.sender.name = &#8220;ESP32&#8221;;<br \/>message.sender.email = sender_email;<br \/>message.subject = subject;<br \/>message.addRecipient(Recipient_name, Recipient_email);<\/p><p>message.text.content = content;<br \/>message.text.charSet = &#8220;us-ascii&#8221;;<br \/>message.text.transfer_encoding = Content_Transfer_Encoding::enc_7bit;<\/p><p>if (!smtp.connect(&amp;session))<br \/>{<br \/>Serial.println(&#8220;Failed to connect to SMTP server.&#8221;);<br \/>return;<br \/>}<\/p><p>if (!MailClient.sendMail(&amp;smtp, &amp;message))<br \/>{<br \/>Serial.println(&#8220;Error sending Email: &#8221; + smtp.errorReason());<br \/>}<br \/>else<br \/>{<br \/>Serial.println(&#8220;Email sent successfully.&#8221;);<br \/>}<br \/>}<\/p><p>void checkAndSendEmail()<br \/>{<br \/>uint8_t result;<br \/>bool coilStatus;<br \/>static bool previousStatus = true;<\/p><p>Serial.println(&#8220;Reading&#8230;&#8221;);<br \/>result = node.readDiscreteInputs(1000, 1);<\/p><p>if (result == node.ku8MBSuccess)<br \/>{<br \/>coilStatus = node.getResponseBuffer(0);<\/p><p>if (!coilStatus &amp;&amp; previousStatus)<br \/>{<\/p><p>Serial.println(&#8220;Digital input D1 is OFF. Sending email&#8230;&#8221;);<br \/>sendMail(&#8220;Alert&#8221;, &#8220;The digital input D1 is OFF. Please check the system.&#8221;);<br \/>previousStatus = false;<br \/>}<br \/>else if (coilStatus &amp;&amp; !previousStatus)<br \/>{<\/p><p>Serial.println(&#8220;Digital input D1 is ON. Sending email&#8230;&#8221;);<br \/>sendMail(&#8220;Status Update&#8221;, &#8220;The digital input D1 is now ON.&#8221;);<br \/>previousStatus = true;<br \/>}<br \/>}<br \/>else<br \/>{<br \/>Serial.println(&#8220;Failed to read digital inputs&#8221;);<br \/>Serial.println(result, HEX);<br \/>}<br \/>}<\/p><\/div>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-dd5d7f5 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"dd5d7f5\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-39db8e0\" data-id=\"39db8e0\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-ff3d833 elementor-widget elementor-widget-text-editor\" data-id=\"ff3d833\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7fea25b elementor-widget elementor-widget-text-editor\" data-id=\"7fea25b\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h5>Serial Monitor :<\/h5>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e606875 elementor-widget elementor-widget-text-editor\" data-id=\"e606875\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h5>When Device(D1) is OFF :<\/h5>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-e8c9823 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"e8c9823\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-8b1d9f1\" data-id=\"8b1d9f1\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-4a7c569 elementor-widget elementor-widget-text-editor\" data-id=\"4a7c569\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;<\/p><p>WiFi connected.<\/p><p>Reading&#8230;<\/p><p>Reading&#8230;<\/p><p>Digital input D1 is OFF. Sending email&#8230;<\/p><p>&gt; C: ESP Mail Client v3.4.15<\/p><p>! E: library or device time was not set, see examples\/SMTP\/Set_Time.ino for manually time setting<\/p><p>&gt; C: connecting to SMTP server<\/p><p>&gt; C: Host &gt; smtp.gmail.com<\/p><p>&gt; C: Port &gt; 465<\/p><p>&gt; C: SMTP server connected, wait for greeting&#8230;<\/p><p>&lt; S: 220 smtp.gmail.com ESMTP r15-20020a17090a0acf00b00299332505d7sm2764896pje.26 &#8211; gsmtp<\/p><p>&gt; C: send SMTP command, EHLO<\/p><p>&lt; S: 250-smtp.gmail.com at your service, [106.198.84.63]<\/p><p>&lt; S: 250-SIZE 35882577<\/p><p>&lt; S: 250-8BITMIME<\/p><p>&lt; S: 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH<\/p><p>&lt; S: 250-ENHANCEDSTATUSCODES<\/p><p>&lt; S: 250-PIPELINING<\/p><p>&lt; S: 250-CHUNKING<\/p><p>&lt; S: 250 SMTPUTF8<\/p><p>&gt; C: send SMTP command, AUTH PLAIN<\/p><p>&gt; C: akilans26224@gmail.com<\/p><p>&gt; C: *******************<\/p><p>&lt; S: 235 2.7.0 Accepted<\/p><p>! E: library or device time was not set, see examples\/SMTP\/Set_Time.ino for manually time setting<\/p><p>\u00a0<\/p><p>&gt; C: send Email<\/p><p>&gt; C: send message header<\/p><p>&lt; S: 250 2.1.0 OK r15-20020a17090a0acf00b00299332505d7sm2764896pje.26 &#8211; gsmtp<\/p><p>&lt; S: 250 2.1.5 OK r15-20020a17090a0acf00b00299332505d7sm2764896pje.26 &#8211; gsmtp<\/p><p>\u00a0<\/p><p>&gt; C: send message body<\/p><p>&lt; S: 354\u00a0 Go ahead r15-20020a17090a0acf00b00299332505d7sm2764896pje.26 &#8211; gsmtp<\/p><p>&gt; C: finishing the message sending<\/p><p>&lt; S: 250 2.0.0 OK\u00a0 1709275982 r15-20020a17090a0acf00b00299332505d7sm2764896pje.26 &#8211; gsmtp<\/p><p>&gt; C: terminate the SMTP session<\/p><p>&lt; S: 221 2.0.0 closing connection r15-20020a17090a0acf00b00299332505d7sm2764896pje.26 &#8211; gsmtp<\/p><p>&gt; C: message sent successfully<\/p><p>Email sent successfully.<\/p><p>Reading&#8230;<\/p><p>Reading&#8230;<\/p><p>Reading&#8230;<\/p><p>Reading&#8230;<\/p><p>Reading&#8230;<\/p><p>\u00a0<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-c9b7786\" data-id=\"c9b7786\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-854455d elementor-widget elementor-widget-text-editor\" data-id=\"854455d\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>&gt; C: send SMTP command, AUTH PLAIN<\/p><p>&gt; C: sender_mail@gmail.com<\/p><p>&gt; C: *******************<\/p><p>&lt; S: 235 2.7.0 Accepted<\/p><p>! E: library or device time was not set, see examples\/SMTP\/Set_Time.ino for manually time setting<\/p><p>\u00a0<\/p><p>&gt; C: send Email<\/p><p>&gt; C: send message header<\/p><p>&lt; S: 250 2.1.0 OK r15-20020a17090a0acf00b00299332505d7sm2764896pje.26 &#8211; gsmtp<\/p><p>&lt; S: 250 2.1.5 OK r15-20020a17090a0acf00b00299332505d7sm2764896pje.26 &#8211; gsmtp<\/p><p>\u00a0<\/p><p>&gt; C: send message body<\/p><p>&lt; S: 354\u00a0 Go ahead r15-20020a17090a0acf00b00299332505d7sm2764896pje.26 &#8211; gsmtp<\/p><p>&gt; C: finishing the message sending<\/p><p>&lt; S: 250 2.0.0 OK\u00a0 1709275982 r15-20020a17090a0acf00b00299332505d7sm2764896pje.26 &#8211; gsmtp<\/p><p>&gt; C: terminate the SMTP session<\/p><p>&lt; S: 221 2.0.0 closing connection r15-20020a17090a0acf00b00299332505d7sm2764896pje.26 &#8211; gsmtp<\/p><p>&gt; C: message sent successfully<\/p><p>Email sent successfully.<\/p><p>Reading&#8230;<\/p><p>Reading&#8230;<\/p><p>Reading&#8230;<\/p><p>\u00a0<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-7dcbbbe elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"7dcbbbe\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-32075c1\" data-id=\"32075c1\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-3f89490 elementor-widget elementor-widget-spacer\" data-id=\"3f89490\" data-element_type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.8.0 - 30-10-2022 *\/\n.elementor-column .elementor-spacer-inner{height:var(--spacer-size)}.e-con{--container-widget-width:100%}.e-con-inner>.elementor-widget-spacer,.e-con>.elementor-widget-spacer{width:var(--container-widget-width,var(--spacer-size));-ms-flex-item-align:stretch;align-self:stretch;-ms-flex-negative:0;flex-shrink:0}.e-con-inner>.elementor-widget-spacer>.elementor-widget-container,.e-con-inner>.elementor-widget-spacer>.elementor-widget-container>.elementor-spacer,.e-con>.elementor-widget-spacer>.elementor-widget-container,.e-con>.elementor-widget-spacer>.elementor-widget-container>.elementor-spacer{height:100%}.e-con-inner>.elementor-widget-spacer>.elementor-widget-container>.elementor-spacer>.elementor-spacer-inner,.e-con>.elementor-widget-spacer>.elementor-widget-container>.elementor-spacer>.elementor-spacer-inner{height:var(--container-widget-height,var(--spacer-size))}<\/style>\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-fe64dcb elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"fe64dcb\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-c2a2460\" data-id=\"c2a2460\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-748fed1 elementor-widget elementor-widget-text-editor\" data-id=\"748fed1\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h5>When Device(D1) is ON :<\/h5>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-16d5f1f elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"16d5f1f\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-4390e07\" data-id=\"4390e07\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-4958d56 elementor-widget elementor-widget-text-editor\" data-id=\"4958d56\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>Reading&#8230;<\/p><p>Reading&#8230;<\/p><p>Digital input D1 is ON. Sending email&#8230;<\/p><p>&gt; C: ESP Mail Client v3.4.15<\/p><p>! E: library or device time was not set, see examples\/SMTP\/Set_Time.ino for manually time setting<\/p><p>&gt; C: connecting to SMTP server<\/p><p>&gt; C: Host &gt; smtp.gmail.com<\/p><p>&gt; C: Port &gt; 465<\/p><p>&gt; C: SMTP server connected, wait for greeting&#8230;<\/p><p>&lt; S: 220 smtp.gmail.com ESMTP y6-20020a170902700600b001dcc2951c02sm2634468plk.286 &#8211; gsmtp<\/p><p>&gt; C: send SMTP command, EHLO<\/p><p>&lt; S: 250-smtp.gmail.com at your service, [106.198.84.63]<\/p><p>&lt; S: 250-SIZE 35882577<\/p><p>&lt; S: 250-8BITMIME<\/p><p>&lt; S: 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH<\/p><p>&lt; S: 250-ENHANCEDSTATUSCODES<\/p><p>&lt; S: 250-PIPELINING<\/p><p>&lt; S: 250-CHUNKING<\/p><p>&lt; S: 250 SMTPUTF8<\/p><p>&gt; C: send next Email<\/p><p>\u00a0<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-0dae97e\" data-id=\"0dae97e\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-81c5793 elementor-widget elementor-widget-text-editor\" data-id=\"81c5793\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>&gt; C: sender_mail@gmail.com<\/p><p>&gt; C: *******************<\/p><p>&lt; S: 235 2.7.0 Accepted<\/p><p>! E: library or device time was not set, see examples\/SMTP\/Set_Time.ino for manually time setting<\/p><p>&gt; C: send next Email<\/p><p>&gt; C: send message header<\/p><p>&lt; S: 250 2.1.0 OK y6-20020a170902700600b001dcc2951c02sm2634468plk.286 &#8211; gsmtp<\/p><p>&lt; S: 250 2.1.5 OK y6-20020a170902700600b001dcc2951c02sm2634468plk.286 &#8211; gsmtp<\/p><p>\u00a0<\/p><p>&gt; C: send message body<\/p><p>&lt; S: 354\u00a0 Go ahead y6-20020a170902700600b001dcc2951c02sm2634468plk.286 &#8211; gsmtp<\/p><p>&gt; C: finishing the message sending<\/p><p>&lt; S: 250 2.0.0 OK\u00a0 1709276038 y6-20020a170902700600b001dcc2951c02sm2634468plk.286 &#8211; gsmtp<\/p><p>\u00a0<\/p><p>&gt; C: terminate the SMTP session<\/p><p>&lt; S: 221 2.0.0 closing connection y6-20020a170902700600b001dcc2951c02sm2634468plk.286 &#8211; gsmtp<\/p><p>\u00a0<\/p><p>&gt; C: message sent successfully<\/p><p>Email sent successfully.<\/p><p>Reading&#8230;<\/p><p>Reading&#8230;<\/p><p>Reading&#8230;<\/p><p>Reading&#8230;<\/p><p>\u00a0<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-6f5dbe7 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"6f5dbe7\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-88225ec\" data-id=\"88225ec\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-3b37ca4 elementor-widget elementor-widget-spacer\" data-id=\"3b37ca4\" data-element_type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-ccbdba3 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"ccbdba3\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a7e148a\" data-id=\"a7e148a\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-ce8c900 elementor-widget elementor-widget-text-editor\" data-id=\"ce8c900\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h5>Received Mail :<\/h5>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-f28bc74 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"f28bc74\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a6085e6\" data-id=\"a6085e6\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-46dc43d elementor-widget elementor-widget-image\" data-id=\"46dc43d\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"640\" height=\"111\" src=\"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2024\/03\/email-1024x178.png\" class=\"attachment-large size-large\" alt=\"\" loading=\"lazy\" srcset=\"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2024\/03\/email-1024x178.png 1024w, https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2024\/03\/email-300x52.png 300w, https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2024\/03\/email-768x134.png 768w, https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2024\/03\/email-1536x267.png 1536w, https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2024\/03\/email.png 1812w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-03137e5 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"03137e5\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a90148d\" data-id=\"a90148d\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-38b36b4 elementor-widget elementor-widget-spacer\" data-id=\"38b36b4\" data-element_type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6b25db5 elementor-widget elementor-widget-text-editor\" data-id=\"6b25db5\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h5>Firmware Features :<\/h5>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e49f9b2 elementor-widget elementor-widget-text-editor\" data-id=\"e49f9b2\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>&#8211; Uses Modbus protocol via RS485 for communication.<\/p><p>&#8211; Sets up WiFi connection for sending email notifications.<\/p><p>&#8211; Sends email notifications using SMTP protocol.<\/p><p>&#8211; Checks the status of D1 periodically and sends email notifications accordingly.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-cb35584 elementor-widget elementor-widget-spacer\" data-id=\"cb35584\" data-element_type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c813887 elementor-widget elementor-widget-text-editor\" data-id=\"c813887\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h5>Setup :\u00a0<\/h5>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ab1c02d elementor-widget elementor-widget-text-editor\" data-id=\"ab1c02d\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>Empowering users with unparalleled flexibility, the system allows for seamless configuration of WiFi and email server credentials. With a straightforward setup process, users can swiftly integrate the system into their workflow with ease.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a5cbcad elementor-widget elementor-widget-text-editor\" data-id=\"a5cbcad\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h5>Conclusion &#8211; Igniting a Revolution :<\/h5>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-da3e80e elementor-widget elementor-widget-text-editor\" data-id=\"da3e80e\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>In a landscape defined by digital intricacies and constant connectivity, the ESP32-Based Digital Input Monitoring and Email Notification System emerges as a beacon of innovation. With its unparalleled efficiency, reliability, and adaptability, it redefines the standards of digital monitoring and notification systems. Embrace the future of monitoring. Embrace excellence.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-9f7eea7 elementor-widget elementor-widget-text-editor\" data-id=\"9f7eea7\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h5>For Potential Clients :<\/h5>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-de7d81f elementor-widget elementor-widget-text-editor\" data-id=\"de7d81f\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>Are you looking for a comprehensive solution to manage digital inputs and receive timely notifications? Our ESP32-Based Digital Input Monitoring and Email Notification System offers unmatched precision and reliability. Whether you&#8217;re in industrial automation, home security, or any other field requiring real-time monitoring, our system ensures you stay informed and in control. Contact us today to learn more about how this innovative solution can revolutionize your operations.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Introduction: In the realm of digital input monitoring and notifications, precision and timeliness are paramount. Enter the ESP32-Based Digital Input Monitoring and Email Notification System. Seamlessly integrating advanced microcontroller capabilities with robust communication protocols, this system offers unparalleled efficiency in monitoring and alerting. Components Used: ESP32: Microcontroller for handling the communication and logic. RS485 MAX: [&hellip;]<\/p>\n <a href=\"https:\/\/www.niraltek.com\/blog\/revolutionizing-monitoring-with-the-esp32-a-smart-solution-for-digital-input-management-and-email-notifications\/\" class=\"ReadMore\" title=\"Read More\">Read More<\/a>","protected":false},"author":11,"featured_media":2248,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.5.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Send an email with ESP32 - Niraltek Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.niraltek.com\/blog\/revolutionizing-monitoring-with-the-esp32-a-smart-solution-for-digital-input-management-and-email-notifications\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Send an email with ESP32 - Niraltek Blog\" \/>\n<meta property=\"og:description\" content=\"Introduction: In the realm of digital input monitoring and notifications, precision and timeliness are paramount. Enter the ESP32-Based Digital Input Monitoring and Email Notification System. Seamlessly integrating advanced microcontroller capabilities with robust communication protocols, this system offers unparalleled efficiency in monitoring and alerting. Components Used: ESP32: Microcontroller for handling the communication and logic. RS485 MAX: [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.niraltek.com\/blog\/revolutionizing-monitoring-with-the-esp32-a-smart-solution-for-digital-input-management-and-email-notifications\/\" \/>\n<meta property=\"og:site_name\" content=\"Niraltek Blog\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-04T07:28:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-09-16T13:48:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2024\/03\/Akilan-blog2png-1024x544.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"544\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Akilan Js\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.niraltek.com\/blog\/#website\",\"url\":\"https:\/\/www.niraltek.com\/blog\/\",\"name\":\"Niraltek Blog\",\"description\":\"Niraltek, IOT, BLOGS\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.niraltek.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.niraltek.com\/blog\/revolutionizing-monitoring-with-the-esp32-a-smart-solution-for-digital-input-management-and-email-notifications\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2024\/03\/Akilan-blog2png.png\",\"contentUrl\":\"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2024\/03\/Akilan-blog2png.png\",\"width\":4418,\"height\":2346},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.niraltek.com\/blog\/revolutionizing-monitoring-with-the-esp32-a-smart-solution-for-digital-input-management-and-email-notifications\/#webpage\",\"url\":\"https:\/\/www.niraltek.com\/blog\/revolutionizing-monitoring-with-the-esp32-a-smart-solution-for-digital-input-management-and-email-notifications\/\",\"name\":\"How to Send an email with ESP32 - Niraltek Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.niraltek.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.niraltek.com\/blog\/revolutionizing-monitoring-with-the-esp32-a-smart-solution-for-digital-input-management-and-email-notifications\/#primaryimage\"},\"datePublished\":\"2024-03-04T07:28:19+00:00\",\"dateModified\":\"2024-09-16T13:48:29+00:00\",\"author\":{\"@id\":\"https:\/\/www.niraltek.com\/blog\/#\/schema\/person\/b3628862f35a01e7f35c370290e1f479\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.niraltek.com\/blog\/revolutionizing-monitoring-with-the-esp32-a-smart-solution-for-digital-input-management-and-email-notifications\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.niraltek.com\/blog\/revolutionizing-monitoring-with-the-esp32-a-smart-solution-for-digital-input-management-and-email-notifications\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.niraltek.com\/blog\/revolutionizing-monitoring-with-the-esp32-a-smart-solution-for-digital-input-management-and-email-notifications\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.niraltek.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Send an email with ESP32\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.niraltek.com\/blog\/#\/schema\/person\/b3628862f35a01e7f35c370290e1f479\",\"name\":\"Akilan Js\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.niraltek.com\/blog\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a7e0faba5cd701f1b6abc3579e6ce6ad?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a7e0faba5cd701f1b6abc3579e6ce6ad?s=96&d=mm&r=g\",\"caption\":\"Akilan Js\"},\"url\":\"https:\/\/www.niraltek.com\/blog\/author\/akilan-js\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Send an email with ESP32 - Niraltek Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.niraltek.com\/blog\/revolutionizing-monitoring-with-the-esp32-a-smart-solution-for-digital-input-management-and-email-notifications\/","og_locale":"en_US","og_type":"article","og_title":"How to Send an email with ESP32 - Niraltek Blog","og_description":"Introduction: In the realm of digital input monitoring and notifications, precision and timeliness are paramount. Enter the ESP32-Based Digital Input Monitoring and Email Notification System. Seamlessly integrating advanced microcontroller capabilities with robust communication protocols, this system offers unparalleled efficiency in monitoring and alerting. Components Used: ESP32: Microcontroller for handling the communication and logic. RS485 MAX: [&hellip;]","og_url":"https:\/\/www.niraltek.com\/blog\/revolutionizing-monitoring-with-the-esp32-a-smart-solution-for-digital-input-management-and-email-notifications\/","og_site_name":"Niraltek Blog","article_published_time":"2024-03-04T07:28:19+00:00","article_modified_time":"2024-09-16T13:48:29+00:00","og_image":[{"width":1024,"height":544,"url":"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2024\/03\/Akilan-blog2png-1024x544.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Written by":"Akilan Js","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/www.niraltek.com\/blog\/#website","url":"https:\/\/www.niraltek.com\/blog\/","name":"Niraltek Blog","description":"Niraltek, IOT, BLOGS","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.niraltek.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https:\/\/www.niraltek.com\/blog\/revolutionizing-monitoring-with-the-esp32-a-smart-solution-for-digital-input-management-and-email-notifications\/#primaryimage","inLanguage":"en-US","url":"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2024\/03\/Akilan-blog2png.png","contentUrl":"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2024\/03\/Akilan-blog2png.png","width":4418,"height":2346},{"@type":"WebPage","@id":"https:\/\/www.niraltek.com\/blog\/revolutionizing-monitoring-with-the-esp32-a-smart-solution-for-digital-input-management-and-email-notifications\/#webpage","url":"https:\/\/www.niraltek.com\/blog\/revolutionizing-monitoring-with-the-esp32-a-smart-solution-for-digital-input-management-and-email-notifications\/","name":"How to Send an email with ESP32 - Niraltek Blog","isPartOf":{"@id":"https:\/\/www.niraltek.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.niraltek.com\/blog\/revolutionizing-monitoring-with-the-esp32-a-smart-solution-for-digital-input-management-and-email-notifications\/#primaryimage"},"datePublished":"2024-03-04T07:28:19+00:00","dateModified":"2024-09-16T13:48:29+00:00","author":{"@id":"https:\/\/www.niraltek.com\/blog\/#\/schema\/person\/b3628862f35a01e7f35c370290e1f479"},"breadcrumb":{"@id":"https:\/\/www.niraltek.com\/blog\/revolutionizing-monitoring-with-the-esp32-a-smart-solution-for-digital-input-management-and-email-notifications\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.niraltek.com\/blog\/revolutionizing-monitoring-with-the-esp32-a-smart-solution-for-digital-input-management-and-email-notifications\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.niraltek.com\/blog\/revolutionizing-monitoring-with-the-esp32-a-smart-solution-for-digital-input-management-and-email-notifications\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.niraltek.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Send an email with ESP32"}]},{"@type":"Person","@id":"https:\/\/www.niraltek.com\/blog\/#\/schema\/person\/b3628862f35a01e7f35c370290e1f479","name":"Akilan Js","image":{"@type":"ImageObject","@id":"https:\/\/www.niraltek.com\/blog\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/a7e0faba5cd701f1b6abc3579e6ce6ad?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a7e0faba5cd701f1b6abc3579e6ce6ad?s=96&d=mm&r=g","caption":"Akilan Js"},"url":"https:\/\/www.niraltek.com\/blog\/author\/akilan-js\/"}]}},"_links":{"self":[{"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/posts\/2245"}],"collection":[{"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/comments?post=2245"}],"version-history":[{"count":14,"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/posts\/2245\/revisions"}],"predecessor-version":[{"id":2266,"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/posts\/2245\/revisions\/2266"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/media\/2248"}],"wp:attachment":[{"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/media?parent=2245"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/categories?post=2245"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/tags?post=2245"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}