Skip to main content

Easily send mail updates to yourself.

Project description

MailUpdater

A Python module for easily sending mail updates to yourself.

This program only works for Gmail at the moment.

For the program to work, you must enable less secure app access.

Quickstart

import mailupdater

username = input("Email address: ")

service = mailupdater.Service(username)

with service.create("Hello world") as email:
    email.write("Python is great for sending emails.")

# A new email will appear in your inbox.

You can also attach files and send multiple emails:

import mailupdater

username = input("Email address: ")

service = mailupdater.Service(username)

with service.create("Vacation pix") as email:
    email.write("See attachments.")
    email.attach("file.txt")
    email.attach("image.png")
    email.write("These are my vacation pictures.")

with service.create("Reminder") as email:
    email.write("Did you see the previous email I sent?")

# Two new emails will appear in your inbox.

Installation

pip3 install mailupdater

Testing

Do:

import mailupdater

mailupdater.test()

Then follow the instructions of the program.

If the program finishes successfully, then you should see two new emails in your inbox.

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

mailupdater-0.0.2.tar.gz (8.4 kB view details)

Uploaded Source

File details

Details for the file mailupdater-0.0.2.tar.gz.

File metadata

  • Download URL: mailupdater-0.0.2.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.2

File hashes

Hashes for mailupdater-0.0.2.tar.gz
Algorithm Hash digest
SHA256 3a1533987ba8c304dd55c7d5f8dc19e57bc9816359d1296bf9399628c2375dfe
MD5 fa7f06d7deca0108494bf1638ec43f56
BLAKE2b-256 70f92dac887d57384e6d59fd02cbb5b3473e7cca9c02cd0eae5984383094b6bc

See more details on using hashes here.

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