Skip to content

python script for send email through any smtp server

Notifications You must be signed in to change notification settings

gasRU76/python-send-email

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python-send-email is a simple script to send an email through any smtp server.

At the first, you can use a simple example:

pip3 install -r requirements.txt
python3 send_email.py --help 

You can use config.ini or use command line arguments to send parametrs:

Usage: send_email.py [OPTIONS]

Options:
  --host TEXT               smtp host  [required]
  --port INTEGER            smtp port
  --use_tls / --no-use_tls  using encryption
  --sender TEXT             email sender  [required]
  --password TEXT           email password
  --recipient TEXT          email recipients  [required]
  --subject TEXT            email subject
  --body TEXT               email body
  --attachment PATH         email attachments
  --help                    Show this message and exit.

You can also build a docker image and send an email through one.

docker build -t python-send-email .
docker run -t python-send-email --help

Thankы, for your comments and support. It is very important for me. 🤗

About

python script for send email through any smtp server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published