Skip to content

KevinFGR/Enviando-email-com-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Enviando-email-com-Python

Using python to send automatic emails

Logo do projeto

About the project:

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.

Topics:

🔹 Tecnologies used

🔹 Files

🔹 Folder "arquivos"

🔹 How to run the code

Technologies used:

  • Python
  • Pywin32
  • HTML
  • CSS
HTML logo CSS logo

Files:

  • 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.

Folder "arquivos":

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.

How to run the code:

Requirements:

  • Python;
  • Pywin32;
  • Windows mail.

Hands-on:

  1. If you don't have Python installed in your computer, you can install following this link:
  2. https://www.python.org/downloads/
    
  3. To install the pywin32 open the command prompt and set this code:
  4. pip install pywin32
    
  5. Open the Git Bash in the folder you want to run the project and paste the following code:
  6. git clone https://github.com/KevinFGR/Enviando-email-com-Python.git
    
  7. Open the folder "Enviando-email-com-Python" and execute the file "app.py".
  8. OBS: At the first time you run the code your computer suppose to open a window to configurate the sender options.

🔹 Go to the top

Releases

No releases published

Packages