Giter Club home page Giter Club logo

imeil's Introduction

imeil.py

A python script to test smtp/email servers. Accepts multiple arguments from command line.

Pre requisites

  • Python 3.4+
  • python-magic --> pip3 install python-magic

Usage

usage: Imeil [-h] [-f address [Full Name ...]] [-m SMTPHOST] [-n PORTNUMBER] [-s SUBJECT]
             [-b BODY] [-l HTML] [-r address [Full Name ...]]
             [-c address [Full Name ...]] [-o address [Full Name ...]] [-u]
             [-d] [-i] [-a ATTACHMENTS [ATTACHMENTS ...]] [-p] [-t] [-v] [-e USER] [-w PASSWORD]

optional arguments:
  -h, --help            show this help message and exit
  -f address [Full Name ...], --mailfrom address [Full Name ...]
                        Mail From:
  -m SMTPHOST, --smtphost SMTPHOST
                        SMTP server where to send feed
  -n PORTNUMBER, --portnumber PORTNUMBER
  -s SUBJECT, --subject SUBJECT
                        Subject
  -b BODY, --body BODY  text/plain body - String or path to the file
                        containing the body
  -l HTML, --htmlbody HTML
                        text/html body - String or path to the file containing
                        the html body
  -r address [Full Name ...], --rcptto address [Full Name ...]
                        RCPT TO:
  -c address [Full Name ...], --cc address [Full Name ...]
                        CC:
  -o address [Full Name ...], --bcc address [Full Name ...]
                        BCC:
  -u, --success         Success Notification to be sent from the server
  -d, --delay           Delay Notification to be sent from the server
  -i, --failure         Failure Notification to be sent from the server
  -a ATTACHMENTS [ATTACHMENTS ...], --attach ATTACHMENTS [ATTACHMENTS ...]
                        Path to files to attach
  -p, --print           Prints the message instead of sending it
  -t, --notls           Disables TLS
  -v, --verbose         Verbose

Examples

Using default port 25 without auth

./imeil.py -f [email protected] "The Tester" -m 127.0.0.1 -r [email protected] "Recipient 1" -r [email protected] -c [email protected] -a /path/to/test.png -a path/to/test.pdf -s "This is a subject" -b "Plain Text body" -l /path/to/htmlbody.html

Using client port 587 with username and password

./imeil.py -f [email protected] "The Tester" -m 127.0.0.1 -n 587 -r [email protected] "Recipient 1" -r [email protected] -c [email protected] -a /path/to/test.png -a path/to/test.pdf -s "This is a subject" -b "Plain Text body" -l /path/to/htmlbody.html -e [email protected] -w Thepassword

Multiple --mailfrom addresses create a set of emails for each mailfrom:

./imeil.py -f [email protected] "The Tester" -f [email protected] -m 127.0.0.1 -r [email protected] "Recipient 1" -r [email protected] -c [email protected] -a /path/to/test.png -a path/to/test.pdf -s "This is a subject" -b "Plain Text body" -l /path/to/htmlbody.html

imeil's People

Contributors

santivazqueze avatar svzez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Forkers

bayuds

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.