Skip to content

Commit

Permalink
Added Python port.
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Danc2050 <[email protected]>
Co-authored-by: Teal Dulcet <[email protected]>
  • Loading branch information
3 people authored Dec 29, 2023
1 parent 137302d commit f4d56ed
Show file tree
Hide file tree
Showing 12 changed files with 1,644 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python-port/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.swp
*.swo
__pycache__/
*.pyc
674 changes: 674 additions & 0 deletions python-port/LICENSE

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions python-port/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include *.rst *.in
43 changes: 43 additions & 0 deletions python-port/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# sendpy
--------
## Overview
sendpy is a command line email and text notification program that makes use
of external and local SMTP servers to send messages.

However, sendpy is much more than that. sendpy is rich in features and use cases.
For example, using this program, one may:

* Attach files to a message
* Send Unicode emojis in the Subject or Body of a message
* Digitally sign a message with S/MIME or PGP encryption
* Send a notification when a long running process (LRP) has finished execution
* Delay the sending of an email until a specific time
* And more!

Help for sending an e-mail and understanding this program can be found using `sendpy --help`, `sendpy --examples`, `sendpy --smtp-servers`, and `sendpy --gateways`.

## Quick Start in 4 Easy Steps

To expedite the ability for users to send a message, here is a quick setup and example:

1. Install using the install command listed in PyPi. Be sure to use pip3.

2. Set the default configuration file to store repetitive commands (e.g., username, password) with the command `sendpy --config`.

3. Enable lower security settings in your external email client, if necessary (ex. [Gmail](https://myaccount.google.com/lesssecureapps)).

4. Send a basic message `sendpy --subject "Employment Opportunity" --to "[email protected]" --message "Hello,\n\n When is a good time to talk about an open position we have for you?"`.

## Dependencies
The following libraries are used in this program:
* [OpenSSL](https://www.openssl.org/)
* [GNU Privacy Guard](https://gnupg.org/) (GPG)

OpenSSL and GPG, are installed on most Linux
distributions by default and may easily be installed on Windows and macOS.
However, so long as a user is not signing emails (the `--passphrase` and `--certificate` flags),
one may use this program without any additional installations on Windows or
macOS.

## Donate
[PayPal](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=NJ4PULABRVNCC)
6 changes: 6 additions & 0 deletions python-port/bin/sendpy
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/python3

from sendpy.__main__ import main

if __name__ == "__main__":
sys.exit(main())
2 changes: 2 additions & 0 deletions python-port/sendpy/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
__pycache__
cert.pem
1 change: 1 addition & 0 deletions python-port/sendpy/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# empty
Loading

0 comments on commit f4d56ed

Please sign in to comment.