You can look email multiple files to a single email to a single person, after which the entire directory will be wiped clean. Use this for your Kindle
or anything.
yagmail
--> sending the emailsos
--> directory access and listingshutil
--> purging the directory afterwords- Within a set virtual env (venv), pip install those dependencies
- Be sure to have the venv running while executing this code
- Though if you clone this repo, you can just navigate to that folder and run...
...and you can use the venv that I have created.
source BookBot/bin/activate
- Though if you clone this repo, you can just navigate to that folder and run...
- Clone this repository
https://github.com/patelpratham11/BookBot.git
- Make sure your gmail account is set to allow for un-safe applications to access it
- This is in order to make sure that this client can access your email and send the emails
- You can access that site and turn it on here
- Make sure to change the 'folder' variable to where ever you want the 'Books' directory to be made/ where you want to place the books to be emailed to you
- Make sure current dependencies are installed with the latest updates
- Execute the code by making sure you're running from the directory and running
python3 Book.py
- Make sure you have followed the pre-usage Instructions
- Place whatever files you would like to email in the folder
- Run the program from the command line, making sure you're following all Instructions
- Put your email, password, and receiving email down
- Everything should send in a single email and clear the directory
- This project was developed by Pratham Patel (patelpratham11) starting December 25, 2021
- All bugs and other comments can be submitted through GitHub