Skip to content
This repository was archived by the owner on May 3, 2025. It is now read-only.

xptoorg/SMTPsender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Gmail STMP Sending

A simple tool to send emails with your gmail account in python.

Usage

To run this tool you should do:

$ python3 emailSend.py

Although this uses the default inputs:

parser = argparse.ArgumentParser()
parser.add_argument("--to", help="Recipient's Email", default="teste@teste.pt")
parser.add_argument("--sub", help="Email subject", default="Teste")
parser.add_argument("--text", help="Email content", default="Here is an email generated with python")
parser.add_argument("--spam", help="Number of emails to spam", default=1)
parser.add_argument("--email", help="Sender email", default="teste@gmail.com")
parser.add_argument("--pwd", help="Sender password", default="1234")
args = parser.parse_args()
usage: sendEmail.py [-h] [--to TO] [--sub SUB] [--text TEXT] [--spam SPAM]
                    [--email EMAIL] [--pwd PWD]

To change the default inputs you only have to run the program with the option you want:

$ python3 emailSend.py --sub "Example" --text "Email text" --email teste@user.pt --pwd defaultPWD

Extra features

With my implementation is possible to spam a person with the spam email:

Spam

An example of usage is:

$ python3 emailSend.py --sub "Example" --text "Email text" --email teste@user.pt --pwd defaultPWD --spam 70

This will send the email 70 times.

About

Sending emails in python using gmail.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages