This project demonstrates an approach to control Real home appliances via external website. Detailed information is given in the project report
As a part of this project, I have slightly modified a library and extended it's functionality, i.e., Mail sending feature.
Take a look at the source code, which is loaded into NodeMCU board.