NodeMcu ESP-8266 - sending emails

Hi!
I just bought a NodeMcu and I want to make a door alarm system that sends an email when a door is opened, but I dont know how to send emails, so if you know the code I`ll be grateful. (I want to use gmail btw).
TIA

I did two google searches that showed me how to do this with both the Arduino, and NodeMCU.

searched google using "Arduino sending email"

and searched "NodeMCU Sending email"

were the #1 results from each search. Most project ideas people have, have already been done, so always do a few searches to see if it has been done. It will save allot of work, and waiting for a forum response that can take several hours, if not a day or two.

"I just bought a NodeMcu and I want to make a door alarm system that sends an email when a door is opened,"

Well, be careful when testing your code as you might unintentionally flood your mail box when testing.

I test the various provider with the library

Here the documentation and how to send attachments

https://www.mischianti.org/category/my-libraries/emailsender-send-email-with-attachments/

Bye