emailme
A Python module to email myself from Python scripts and the command line.
installation
$ 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.
$ 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.
$ 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.
from emailme import sendmail
sendmail(subject='hey', message="What's up? How are you doing?")
Release files for emailme 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| emailme-0.3.0.tar.gz | 4.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| emailme-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.6 kB
Release files / emailme-0.3.0.tar.gz
| Download URL | emailme-0.3.0.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d19426411ae59a48cedf9d780482125e17b6f9e1ec14ff6b5d8a876254f16091
|
|
BLAKE2b-256 checksum How to use checksums |
1738cce9302054c0bc46a8fecbd36ee190c2b18b9f0d336fdc4cd2bf794fc742
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.8.2
|
Release files / emailme-0.3.0-py3-none-any.whl
| Download URL | emailme-0.3.0-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
78fd5c3c4acc79d0a8a456929fa235ea1a62aa4c2dd71d03c840023c11c1f613
|
|
BLAKE2b-256 checksum How to use checksums |
b132360d8685f25f4325630048b89af4f27c121df0d867d479e3b2a54be07ca4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.8.2
|