Code Monkey home page Code Monkey logo

sendmailviasmtp's Introduction

README

SendmailViaSMTP is an easy used command line kit for sending mail via smtp server which can use in multiple platforms like linux, BSD, Windows etc. Like msmtp but don't need compile and install in each machine. Just copy SendmailViaSMTP.py to any machine which had python installed. SendmailViaSMTP is distributed under the BSD license.

  • Accept data from pipe as email body.
  • Tls support. This means we support sending mail using gmail.
  • Multi recipient support.
  • Multi system supported, like Linux, BSD, Windows etc.
  • NEW: Attachments support(using -a/--attach option, see help message for more).
  • log support. use --log option for debugging.
  1. Git clone(recommend)
    $git clone https://github.com/leopku/SendmailViaSMTP.git
  2. Download
    1. Dowload last source code zip/tar.gz package from http://github.com/leopku/SendmailViaSMTP/archives/master
    2. Download last package uploading by developer from http://github.com/leopku/SendmailViaSMTP/downloads
  1. pipe mode [1]
    $echo "contents from pipe." | python SendmailViaSMTP.py --host="mail.domain.com" --from="[email protected]" --to="[email protected];[email protected]" --user="[email protected]" --password="p4word" --subject="mail title"
  2. file mode
    $python SendmailViaSMTP.py --host="mail.domain.com" --from="[email protected]" --to="[email protected];[email protected]" --user="[email protected]" --password="p4word" --subject="mail title" --file="/path/to/file"
  3. option mode
    $python SendmailViaSMTP.py --host="mail.domain.com" --from="[email protected]" --to="[email protected];[email protected]" --user="[email protected]" --password="p4word" --subject="mail title" --content="contents from option"

NOTE: The priority of three mode: pipe mode, file mode, option mode.

[1]pipe mode is very useful while working with nagios etc.

sendmailviasmtp's People

Contributors

leopku avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.