Replies: 8 comments 8 replies
-
If you want to get incoming message instantly, please see this example. |
Beta Was this translation helpful? Give feedback.
-
Dear Mibizt Thanks for the replay but It is not exactly what I need, in the inbox can be received also other mails, not only the signalling email. So I need to create a command for siren activation on specific email Subject Thanks |
Beta Was this translation helpful? Give feedback.
-
Deal mobizt I apologize but my knowledge of how emails are handled is limited. UID seams to be associated to each email, but in this case is the Video camera that generate each mail which I can identify, when I receive it, form the sender address or from the Subject title. I can't know the UID in advance. Can you please indicate a trace about how to write the code to fetch a specific email from a known sender address / name or from and known Subject field, to "consume" that mail, and wait for the new one. Alternatively can you point me to a simple basic theory of the mail exchange. Thanks for your support ! |
Beta Was this translation helpful? Give feedback.
-
Dear mobizt I'm trying to test your Mailbox_Change_Notification example but if I send a test email in the INBOX of my email account I don't see any new message in the terminal windows after the app has been lunched 21:25:04.927 -> Connecting to Wi-Fi. An email is sent to the INBOX folder now Non reaction from the Arduno app. Shoud it detect an incomming message ? Thanks! |
Beta Was this translation helpful? Give feedback.
-
Dear mobizt Thank for highlight the row 21:28:08.533 -> Mailbox status changed ; When I sent the new message to the mailbox, I didn't recoglize that the Arduino terminal windows upated it with a very similar data. However, I woudl like to know who is "Sender" and the "From" fields that seems not be printer out , in the Arduino Terminal windows (see above) In your code the related section shoud be: void printMessages(std::vector<IMAP_MSG_Item> &msgItems, bool headerOnly)
.... Because these two fileds are not printed out, it means that strlen(msg.from) and if (strlen(msg.sender)) are both =0, but it shoudn't be because they are (see the email picture below : ReolinkCamera and [email protected] ) Any idea to investigate more about the reason because these fields are not printed out ? Thanks |
Beta Was this translation helpful? Give feedback.
-
Dear mobizt I've combined the SMPT and IMAP functionalities to create a demo program which is able to receive as well as send messages. I 'm in the final testing phase and I would like to automatically recover the communication failures, when some temporary disconnection of the WIfi or from the IMAP /SMPT servers happen. I've notice that the #define ESP_MAIL_WIFI_IS_AVAILABLE is able to recover from the WIFI disconnections events, however , I would like to know how to manage the server disconnections, and if possible how to emulate a server disconnection (with Wifi enabled) in the debugging phase of the application. Any suggestions? Thanks |
Beta Was this translation helpful? Give feedback.
-
https://github.com/mobizt/ESP-Mail-Client#using-tcp-session-keepalive-in-esp8266-and-esp32 |
Beta Was this translation helpful? Give feedback.
-
Do not use macros that are not presented in the examples, documentation and config file. The |
Beta Was this translation helpful? Give feedback.
-
Dear all,
I want to connect a surveillance camera to a siren . The camera sends an email to an Arduino board (ESP32 u-blox NINA-W102), and when it detects a person motion a siren will be activated. I can define the email message that the camera sends in term of subject and in term of message content. I want creating an Arduino program that select a specific subject (ex Subject : Camera detects a person motion) and that activates a siren asserting a port pin of the Arduino Board.
Is not clear for me how to ignore the unwanted or not fresh messages in the IMAP Email server as well how to ignore the messages (email) already used. Is anybody able to give me the trace of the code, starting from the already available example Read_Single_Email_Loop ?
Thanks !
Paolo
Beta Was this translation helpful? Give feedback.
All reactions