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?")
```
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.3.tar.gz
(3.3 kB
view details)
Built Distribution
File details
Details for the file emailme-0.1.3.tar.gz
.
File metadata
- Download URL: emailme-0.1.3.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14871d78f98cd207dee7e6feae5687a0b335602c1303b696d66170d067bec452 |
|
MD5 | 3d3d94ddbe4e0d88abe8f058d8f313c2 |
|
BLAKE2b-256 | 58b81e136e67d231146422e44b1a1296a3a417e899a6b5fb1d8b6e48dadc1e3d |
File details
Details for the file emailme-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: emailme-0.1.3-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e3deb7a08c33c6bd575a237d55cbe27037bb605e01adb9179dfc060b22f90e2 |
|
MD5 | 44eb533a56df38e9a8cfc4e6b9c1b720 |
|
BLAKE2b-256 | 648932f705eb6efff5746cb04a536a39a75ac23304eb7f6042715fa10fd9d538 |