-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Code refactor. * Major progress. * Progress. * Progress. * Debugging. * Fixed #1 * Dependency updates. * Cleanup before merge.
- Loading branch information
Showing
6 changed files
with
301 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,12 +16,15 @@ contents of the file are put into into the body of the email._ | |
|
||
## Use Case | ||
|
||
There are probably many, but I wrote _smvp_ so my cron scripts can email | ||
There are probably a few, but I wrote _smvp_ so my cron scripts can email | ||
me status information and the contents of log files. Some of the files | ||
contain ANSI escape sequences for terminal colors. The _smvp_ utility | ||
converts those ANSI escape sequences into proper HTML tags, so the | ||
emails I get are nicely formatted. | ||
|
||
_smvp_ is not intended to be a bulk emailer for formatted messages. There | ||
other (better) tools for that. | ||
|
||
## Installation | ||
|
||
Use your preferred python package installer for command line tools, for | ||
|
@@ -69,16 +72,35 @@ port `587`. Check the SMTP settings for your email provider. This is the | |
default TLS port on Gmail, so if you're using your Gmail account to send | ||
emails, you're good-to-go. | ||
|
||
## Styling | ||
|
||
_smvp_ offers custom font and font size options for your email. The | ||
default font for formatted HTML email is `Courier New`, `12px`. Beyond | ||
the default you can choose any font size from `2px` up to and including | ||
`100px`, from among these font families: | ||
|
||
```text | ||
"Andale Mono", "Arial", "Brush Script MT", "Comic Sans MS", | ||
"Courier New", "Garamond", "Georgia", "Helvetica", "Impact", | ||
"Luminari", "Monaco", "Tahoma", "Times New Roman", "Trebuchet MS", | ||
"Verdana", "fantasy", "monospace", "sans-serif", "serif" | ||
``` | ||
|
||
_NOTE: Not every font will render properly on every device. When in | ||
doubt, fonts like: "monospace", "sans-serif", "fantasy", and "serif" are | ||
pretty safe. You may just have try a few options to land on the right | ||
one for your use case._ | ||
|
||
## Usage | ||
|
||
```text | ||
usage: smvp [-h] recipient subject file | ||
usage: smvp [-h] [-f FONT_FAMILY] [-s FONT_SIZE] [-v] recipient subject file | ||
``` | ||
|
||
For example: | ||
|
||
```text | ||
smvp [email protected] "Hello, Friend" ~/logfile.txt | ||
smvp [email protected] "Hello, Friend" ~/logfile.txt -f "Trebuchet MS" | ||
``` | ||
|
||
For more details, run: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
[project] | ||
name = "smvp" | ||
version = "0.1.2" | ||
version = "0.2.0" | ||
description = "Send a formatted email from the command line" | ||
authors = [ | ||
{ name = "Peter Nardi", email = "[email protected]" } | ||
] | ||
license = {file = "LICENSE"} | ||
readme = {file = "README.md", content-type = "text/markdown"} | ||
keywords = [ | ||
"smvp", | ||
"you", | ||
"send", | ||
"mail", | ||
"sendmail", | ||
"logs", | ||
"scripting", | ||
"ansi", | ||
"cron", | ||
"html", | ||
"logs", | ||
"mail", | ||
"mime", | ||
"scripting", | ||
"send", | ||
"sendmail", | ||
"smvp", | ||
] | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.