Giter Site home page Giter Site logo

puhmia / python-smtp-mail-sending-tester Goto Github PK

View Code? Open in Web Editor NEW

This project forked from turbodog/python-smtp-mail-sending-tester

0.0 1.0 0.0 108 KB

A simple Python command-line app for sending test messages using a range of parameters (port, SSL, TLS, auth, etc.)

Home Page: http://gerundinganimal.blogspot.com/

Python 100.00%

python-smtp-mail-sending-tester's Introduction

smtptest.py: command-line smtp test mail sender

I use this to programmatically test the security of my email server setups. With this Python app it's easy to script various combinations to SMTP sending options to make sure your email server behaves as you expect, both inside the firewall and out.


Usage: python smtptest.py [options] fromaddress toaddress serveraddress 
Options:
  -h, --help            show this help message and exit
  -t, --usetls          Connect using TLS, default is false
  -s, --usessl          Connect using SSL, default is false
  -n nnn, --port=nnn    SMTP server port
  -u username, --username=username
                        SMTP server auth username
  -p password, --password=password
                        SMTP server auth password
  -v, --verbose         Verbose message printing
  -d n, --debuglevel=n  Set to 1 to print smtplib.send messages

Examples:
	python smtptest.py [email protected] [email protected] mail.example.com
	python smtptest.py --debuglevel 1 --usetls -u bob -p xyzzy "Bob <[email protected]>" [email protected] mail.example.com

At verbose == False and debuglevel == 0, smtptest will either succeed silently or print an error. Setting verbose or a debuglevel to 1 will generate intermediate output.

See also http://docs.python.org/library/smtplib.html

python-smtp-mail-sending-tester's People

Contributors

g-a-c avatar turbodog avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.