Skip to main content

Easily send mail updates to yourself.

Project description

MailUpdater

A Python module for easily sending mail updates to yourself.

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.

Sending emails to multiple recipients is easy:

import mailupdater

username = "jon@mail1.com"
recipients = ["mary@mail2.com", "bob@mail3.com"]

service = mailupdater.Service(username, recipients)

with service.create("Party invitation") as email:
    email.write("Come to my party!")

# All recipients, including yourself, will recieve the email.

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.3.tar.gz (8.7 kB view hashes)

Uploaded Source

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