Skip to main content

A simple command-line email client!

Project description

PyPI license

cmail

A simple command-line email client!

  • send email with attachments
  • save contacts

Installation

To install cmail, simply,

$ pip install bshare

Usage

  • Help command:

    $ cmail -h
    
    usage: cmail.py [-h] [-m] [-c] [-r] [-a name email]
    
    A simple command-line email client!
    
    optional arguments:
      -h, --help            show this help message and exit
      -m, --mail            Send mail.
      -c, --contacts        Shows the saved email contacts.
      -r, --reset           Reset contacts list to default.
      -a name email, --add name email
                            Add new contact.
    
  • To send mail:

    $ cmail -m
    
    To: example@gmail.com
    Subject: test
    Text: hi there!
    Want to attach any files? (y/n): n
    Enter username (press Enter to use default 'me'): indianpythonista@gmail.com
    Enter password:
    Your mail was sent successfully!
    
  • To save a contact:

    $ cmail -a me nikhilksingh97@gmail.com
    New contact saved!
    
  • To show contacts:

    $ cmail -c
    
    +---------+--------------------------+
    | name    | email                    |
    +=========+==========================+
    | me      | nikhilksingh97@gmail.com |
    +---------+--------------------------+
    | example | example@example.com      |
    +---------+--------------------------+
    
  • Clear contacts list:

    $ cmail -r
    
    Contacts list reset to default.
    

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
cmail-1.0.0.tar.gz (3.5 kB) Copy SHA256 hash SHA256 Source None Jan 24, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page