A simple terminal-based app to send emails.
- Wanted a simple app to send emails from anywhere, and without logging in to Gmail.
- These days I was sending my resume to a lot of companies and people. I would like to automate this process, in future, rather than running this app manually.
- Need to write a process which gets triggered whenever I want and gets receiver's mail and sends my resume automatically.
- You need an Email account. Create one here.
- You need to turn on Less Secure App Access. Do it here.
- In case you have Two Factor Authentication turned on, you need an app password. This password will be used to login to your email account. Get one here.
- Download main.py source-code file and open it.
- Give the path of file, you want to send as attachment, in source-code file. For example...
FILE_PATH = r"C:\Users\Irtiza\Projects\Test.pdf"
- Open terminal in the folder where main.py is stored.
- Run the app in terminal using...
python main.py