Mail-sender is a simple utility for sending program output to mail
Edit the config file (Uncomment the options you want)
[ssl] #If using ssl
[tls] #If using tls
[port] #If using custom port (or ssl, default = 25)
[debug] #I recommend to enable this mode for the first letter
[recips] #If you plan to send to multiple recipients
[timeout] #include this block if the command output is expected after more than 2000 seconds
seconds = 20201 #Enter the time in seconds (20201 - for example)
[smtp] #This block contains data for interaction with the smtp server
server = smtp.mail.ru
user = example@mail.ru #user = from
pass = example
port = 465 #Use, if uncomment [port] (specify the port of your smtp)
[TO] #Specify one or more (see [recips]) addresses (separated as in the example)
emails = example.test@mail.ru, example@gmail.com
[SUBJECT] #It is subject
subject = Mail-sender returns the result output of the utility
./mail_sender.py utility -utility_options
./mail_sender.py "cat supertext | grep '#'"
./mail_sender.py ./path/to/program
P.S: If desired, you can use mail-sender as a regular utility, installing it as well as programs from the source code :)
MIT©