Using python to send automatic emails
This program was made in python using the library Pywin32 used to give the Python the power of work with some Windows tools like the Windows Mail. The meaning of this project is to send my curriculum automatically to the companie's emails. The script does the following actions:
- Open all the files of folder "arquivos" one by one to get the mail address and the subject;
- Get the content of the file "curruculum.html" wich has my HTML curriculum version;
- Format and send the email heaving my curriculum as the body for the address indicated in the file.
🔹 Files
- Python
- Pywin32
- HTML
- CSS
- app.py: The main file of the project. this is the file which has the Python script to send the mail;
- curriculum.html: this file has the information that will be insearted in the body of the E-mail.
This is the folder which you will create the files containing the mails and subjects. inside the folder you can find an exemple file to see how is the sintax. The program will take as an email address the content after the sequence of characters "Email :" and the subject will be what comes after "Assunto a ser colocado no email :". If there's no subject the program will take "Envio de curriculum" as subject.
The sintax is like this because of the apinfo.com (job site). so you just have to copy the e-mail address and the subject by there and paste in the file.
- Python;
- Pywin32;
- Windows mail.
- If you don't have Python installed in your computer, you can install following this link:
- To install the pywin32 open the command prompt and set this code:
- Open the Git Bash in the folder you want to run the project and paste the following code:
- Open the folder "Enviando-email-com-Python" and execute the file "app.py". OBS: At the first time you run the code your computer suppose to open a window to configurate the sender options.
https://www.python.org/downloads/
pip install pywin32
git clone https://github.com/KevinFGR/Enviando-email-com-Python.git