Nico-Curti / cmd-mail

Simple e-mail sender in different languages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Simple e-mail sender in different languages

License:GNU General Public License v3.0


Languages

Language:C++ 45.6%Language:PowerShell 22.4%Language:Python 18.5%Language:Shell 13.4%