GithubHelp home page GithubHelp logo

nico-curti / cmd-mail Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 28 KB

Simple e-mail sender in different languages

License: GNU General Public License v3.0

C++ 45.65% Python 18.55% PowerShell 22.39% Shell 13.42%
e-mail send-email examples

cmd-mail's Introduction

Authors Project
N. Curti cmd-mail

SMail ๐Ÿ˜

Send eMail

The project includes different ways (in different languages) to send email by using simple command line instructions.

Before use this package, please edit the mail.config file with your credentials.

  1. Prerequisites
  2. Installation
  3. Authors
  4. License

Prerequisites

In every script the function smail parse the configuration file mail.config in which informations about users and domains are stored.

If you are using the Python version install the full list of prerequisites using pip install -r requirements.txt in the project directory.

All the other smile versions have no particular requirements. You can compile the C++ version with the simple command

g++ smail.cpp -o smail -O3

Languages

The smail function is supported in:

bash smail.sh to from "echo Hello World!"
./smail.ps1 -TO to -FROM from -cmd "echo Hello World!"
python smail.py -t to -f from -x "echo Hello World!"
g++ smail.cpp -o smail -O3
./smail to from "echo Hello World!"

The mail credentials in the configuration file are parsed and the command line was built using that informations. In addition you can add a command line to execute before the mail sending. In this way the output of the command was redirected into a log file which will be attached to mail. It can be useful when you are working on long pipeline and you want know when it finish.

Authors

License

The cmd-mail package is released under GPL License. License

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.