Skip to main content

Super simple self-emailing.

Project description

# emailme

A Python module to email myself from Python scripts and the command line.

# installation

```bash
$ pip install emailme
```

# intended usage

`emailme` is intended to be used to quick-fire send an email to oneself from Python scripts and from the command line.

## initial setup

Sending email requires you to login to an SMTP server. This often means a password is required.

To get started, you will need to store your username and password in a file that is read-write only by you. `emailme` provides a convenience way to get setup.

```bash
$ emailme start
```

You will be asked for your email address and passwrod there.

**note about password:** I strongly suggest NOT storing your regular email password. Instead, you should be using an app-specific password that you rotate regularly. Gmail offers such a functionality, and is highly recommended. Check with your email host provider for more detail.

Upon entering your credentials, a file will be written to disk at `~/.credentials/emailme.json`. This email is only read/write-able by you; other users of the computer are unable to read or write it.

Upon this initial setup, you will now be able to use `emailme` to send emails to yourself.


## command line usage

Usage at the command line is super simple.

```bash
$ emailme sendmail --subject "hey" --message "what's up?"
```

(be sure to escape your exclamation marks!)

## script usage

You can also import emailme and use it from a Python script.

```python
from emailme import sendmail

sendmail(subject='hey', message="What's up? How are you doing?")
```


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

emailme-0.1.2.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

emailme-0.1.2-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file emailme-0.1.2.tar.gz.

File metadata

  • Download URL: emailme-0.1.2.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for emailme-0.1.2.tar.gz
Algorithm Hash digest
SHA256 99de71edcb651b08cba23e292d397f1cdfdf1d3c58211e4964206b08d2a69481
MD5 55e42e8f9bdc4e1901ee0b9f8809943c
BLAKE2b-256 acf882e869e4053822a80fcc38cdf4ff288e7991425a75184658ae17fbb39592

See more details on using hashes here.

File details

Details for the file emailme-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for emailme-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 66ad354d71d48794bd2fe159eaf6574f299d149e9641b9ef1e96f2e59f9f0218
MD5 6420df6d5858fb3741b67b76e3e0b324
BLAKE2b-256 2125b6d1c758a757e6f6bfc5359feef8ae37e7e2a2c9b700e458ed4e34ad0f38

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