mailertls [options]
This program sends E-Mail messages over SSL/TLS.
Uses the specified configuration-file
Set the host name or address of the SMTP server
Set the port where the SMTP server is listening (default is 587 for SSL/TLS)
Set the hostname used in the EHLO command (default is localhost)
Close the connection after the specified time in seconds (default is 10)
Username for SMTP AUTH required in plain-text
Password for SMTP AUTH required in plain-text
Address to use in MAIL FROM command
Address to use in RCPT TO command
Subject of the message
Plaintext of the message
Sends the specified file as attachment
Explain what is being done. Output the client-server communication
Print a brief help message and exits
Prints the manual page and exits
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
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"
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"
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"
This is released under the GNUv3 License.
Marco Opper, marco.opper@gmx.de