Skip to main content

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.

Download files

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

Source Distribution

cmail-1.0.0.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file cmail-1.0.0.tar.gz.

File metadata

  • Download URL: cmail-1.0.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cmail-1.0.0.tar.gz
Algorithm Hash digest
SHA256 51e5a7895a396dd8e42a2fbc47207f0fc548cfb3fff325454da1c79490a64bbf
MD5 7cc835c5e3f53b43d5d398aa649472bc
BLAKE2b-256 d354d47b373d1d10e97719285288da565c65dbb5a2dd999692029bda8bcf28b9

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page