This repository contains scrpit for sending the emails directly from the terminal/command-line.
You need few things to run the script
- Python3 or above in your system
- Stable internet connection.
- Firefox browser
- Geckodriver
Selenium is a differntly design module and you need a geckodriver to operate firefox browser.
There are lot of third party modules that are used in the script and it is suggested to run the script in virtual env.
NOTE: I used yahoo.com to send emails in this script It may not work for other mailing platforms like gmail.
The two scripts are uploaded:
-
login.py ( https://github.com/bansalshivam/send_email_from_terminal-command_line/blob/master/login.py )
-
emails.py( https://github.com/bansalshivam/send_email_from_terminal-command_line/blob/master/emails.py )
The first script login.py can only be used to login into yahoo account
The second script emails.py is the main code to send emails.
Also checkout my blog on Webscraping and give claps if you like it. https://medium.com/@shivambansal157/web-scraping-17b6891f9da4