Here is another one of my edited programs that I wanted to share. This is a Python based Gmail sender. With a slight tweaking of the code, you can set it to Outlook, Hotmail, YahooMail and others. Hope it works fine for you people too!
These were the requirements that I had to do while sending mails thru this program.
1) 2 Factor Authorization must be set up.
2) Allow third party apps to send messages option must be ticked.
3) Incase the program doesn't allow you to send mails with your regular Gmail passcode, you might need to use your 16 digit app passcode here.
Thenks again, Please Upvote me.