NATHAN242's Projects
Projects
Tools
Libraries
Web Tools
File: LINK
Simple SMTP server testing script.
You can use this to send an email via a specified SMTP server. All data sent and received will be output to the console. Useful for testing if an SMTP server is set up correctly.
=== SMTP Tester === Usage: ./SMTPt.py [SMTP_SERVER] [FROM] [TO] [SUBJECT] [BODY] ./SMTPt.py [SMTP_SERVER] [FROM] [TO] - < [DATA]
Example:
./SMTPt.py smtp.example.org "<sender@example.org>" "<recipient@example.org>" "Test email" "Hello World!"
Instead of [SUBJECT] and [BODY], you can specify "-" to use data from STDIN as message data.