Skip to main content

Send emails on command line.

Project description

Pylio

Send email messages through a specified Gmail account.

Getting Started

  1. Download Pylio and its dependancies pip install pylio

  2. Turn on Gmail API by clicking Enable Gmail API on Gmail

    1. Select + Create a new project.
    2. Download the credentials file to access your Gmail account.
    3. Move the downloaded file to your working directory and ensure it is named credentials.json.
      You can also specify the location of credentials.json either in config.yaml or using the --cred-file flag.
  3. From command line: use pylio with the below arguments. Default arguments will come from the config.yaml unless otherwise stated.

    Command line override arguments:
    --to email_address email address of intented recepient
    --message msg_body text body of email
    --config-file path (optional) path to custom configuration file; default is config.yaml
    --cred-file path (optional) path to Google Gmail credentials JSON file
    --subject subject_line (optional) subject line of email

Contents

config.yaml Default configuration file to specify to, message, and Google credentials file
PylioMail.py Class using Google API
setup.py pip file

How does it work?

This repository is a wrapper that simplifies the use of the Google Gmail API.

Troubleshooting

2018 (c) Xavier Collantes

Project details


Download files

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

Source Distribution

pylio-0.0.1.tar.gz (1.9 kB view hashes)

Uploaded Source

Built Distribution

pylio-0.0.1-py3-none-any.whl (9.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page