暂无描述

Volkov R.O efcf36883f Update README.md 2 年之前
LICENSE cc3a7702f0 Initial commit 4 年之前
README.md efcf36883f Update README.md 2 年之前
config.ini 74dbcf2ba2 Add readme, remove trash, add new opportunities 4 年之前
mail_sender.py 3001d67e15 Update mail_sender.py 4 年之前

README.md

Mail - sender

Mail-sender is a simple utility for sending program output to mail

  • 1 config file
  • Any utilities, programs, binaries
  • All popular mail services

How it use:

  • git clone https://github.com/Volkov-R-Net/Mail-sender.git
  • chmod +x mail_sender.py
  • 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
    

    Everything is ready to use!

    • If use one utility:
      ./mail_sender.py utility -utility_options
    • If use bash-pipline: ./mail_sender.py "cat supertext | grep '#'"
    • If use other sripts or binaries ./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 :)


License

MIT©