SYNOPSIS

    mailertls [options]


DESCRIPTION

This program sends E-Mail messages over SSL/TLS.

OPTIONS

-config

Uses the specified configuration-file

-host

Set the host name or address of the SMTP server

-port

Set the port where the SMTP server is listening (default is 587 for SSL/TLS)

-hello

Set the hostname used in the EHLO command (default is localhost)

-timeout

Close the connection after the specified time in seconds (default is 10)

-user

Username for SMTP AUTH required in plain-text

-pass

Password for SMTP AUTH required in plain-text

-from

Address to use in MAIL FROM command

-to

Address to use in RCPT TO command

-subject

Subject of the message

-body

Plaintext of the message

-attachment

Sends the specified file as attachment

-verbose

Explain what is being done. Output the client-server communication

-help

Print a brief help message and exits

-man

Prints the manual page and exits


EXAMPLES

The easiest way to send a single mail is to use a configuration file. Except password and recipient, all parameters are used from this file.

mailertls --config mailertls.conf --pass secret --to "username@example.com"

The configuration can look like this:

  #file: mailertls.conf
  from="username@domain1.com"
  text="<h1>Hello</h1>Message from mailtools"
  count=1

Text-substitution

This feature is useful if you want to send a huge amount of mails to one postbox. The substitutions are specified with curly braces around the filename(s). Each possible value is represented by one line.

  #file: mailertls.conf
  from="{fornames.txt}.{surnames.txt}@example.com"

Using a proxy

The following command sends a mail by using the given configuration file through a SOCKS4 proxy to hide the original source IP:

mailertls --config mailertlsconf --to "username@example.com" --proxy "1.2.3.4:1080:4"

Other examples

Sending with attachment:

mailertls --config mailertlsconf --to "username@example.com" --attachment ~/filename

Multiple recipients

mailertls --config mailertlsconf --to "username@example.com" --to "user@example2.com"


LICENSE

This is released under the GNUv3 License.


AUTHOR

Marco Opper, marco.opper@gmx.de