Skip to content

Latest commit

 

History

History
57 lines (46 loc) · 1.41 KB

README.md

File metadata and controls

57 lines (46 loc) · 1.41 KB
CloudMailin Logo

CloudMailin MailTools

MailTools is an SMTP client toolkit for testing SMTP servers. It's designed to send example emails or push example raw emails to an SMTP server.

Installation

The easiest way to install MailTools is to download it and create a symlink to the mailtools script in your path.

git clone
ln -s $(pwd)/mailtools /usr/local/bin/mailtools

Usage

Usage:
  cli send

Options:
  [--from=FROM]
                               # Default: CLI <cli@smtp>
  [--to=TO]
                               # Default: Debug <debug@smtp>
  [--cc=CC]
  [--bcc=BCC]
  [--times=N]
                               # Default: 1
  [--concurrency=N]
                               # Default: 5
  [--class=CLASS]
  [--verbose], [--no-verbose]
                               # Default: false
  [--data=DATA]
  [--headers=one two three]
  [--host=HOST]
                               # Default: localhost
  [--port=N]
                               # Default: 587
  [--username=USERNAME]
  [--password=PASSWORD]
  [--smtp-url=SMTP_URL]

Send test messages

Example

mailtools send  --smtp_url "smtp://user:[email protected]:587?starttls=true" --times 20 --concurrency=10 --headers x_cloudmta_layout=test --verbose