Skip to content

chazlever/pysendmail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PySendmail

What is it?

PySendmail is a simple Python script that allows you to send e-mail alerts from the command line. Additionally, it can be imported as a module and incorporated into existing Python scripts.

How do I install it?

Install using pip:

pip install -e git://github.com/chazlever/pysendmail.git#egg=pysendmail

Install using setup.py:

git clone git://github.com/chazlever/pysendmail.git
cd pysendmail
python setup.py install

How do I use it?

The script reads server settings from a config file which can be created using the config option as follows:

pysendmail --user 'username' --pass 'password' --server 'smtp.gmail.com' --port 587 config

To send e-mail, you can use the send option in a script or on the command line as follows:

pysendmail -t 'some@email.com' -s 'Your Subject' -m 'Your Message' -a 'filename' send 

For help using the application, use the --help flag on the command line:

pysendmail --help

Who are you?

My name is Chaz Lever. I'm a graduate student pursuing a PhD in computer science with a focus in computer networking and security.

About

Python script that allows sending e-mail alerts from the command line.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages