Is there a way to program an ESP32 to check a specific email account and to flash an LED if it finds an UNREAD email with a specific Subject?
What I want is an LED light that shows me that I have received a work email warning me that there is a fault with the servers at work.
If this is too hard, perhaps a program that just tells me if i have ANY unread messages and i can setup an email address specifically for this purpose.
You would need a mail client and then just some logic to check if it has been read or not and whether it has the specific subject you’re looking for. Turning on or flashing an LED is trivial.
The library Steve mentioned should help with that.
There are several examples to read and search emails: https://github.com/mobizt/ESP-Mail-Client/tree/master/examples/IMAP
I hope this helps.