Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

NotificationsYou must be signed in to change notification settings

turbodog/python-smtp-mail-sending-tester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

smtptest.py: command-line smtp test mail senderI 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 messagesExamples:python smtptest.py bob@example.com mary@example.com mail.example.compython smtptest.py --debuglevel 1 --usetls -u bob -p xyzzy "Bob <bob@example.com>" mary@example.com mail.example.comAt 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 alsohttp://docs.python.org/library/smtplib.html

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors2

  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp