https://github.com/coskundeniz/new-year-message-automator
https://github.com/coskundeniz/new-year-message-automator
email-automation message-cards python
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/coskundeniz/new-year-message-automator
- Owner: coskundeniz
- License: gpl-3.0
- Created: 2020-12-22T16:14:55.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-22T16:37:33.000Z (over 4 years ago)
- Last Synced: 2025-02-28T19:17:45.495Z (about 2 months ago)
- Topics: email-automation, message-cards, python
- Language: Python
- Homepage:
- Size: 177 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
new-year-message-automator
==========================A command line program to prepare and send an html formatted message card with Python.
Requirements
------------* Using pip
```
python -m venv env
source env/bin/activate
pip install -r requirements.txt
```* Using pipenv
```
pipenv install
pipenv shell
```Usage
-----```
usage: new_year_message_automator.py [-h] [-f FROMADDR] [-t TOADDR] [-s SUBJECT] [-m MESSAGE] [-b BACKGROUND] [-c TEXTCOLOR]optional arguments:
-h, --help show this help message and exit
-f FROMADDR, --fromaddr FROMADDR
Sender mail address
-t TOADDR, --toaddr TOADDR
Receiver mail address(es). For multiple emails give comma separated emails or a file with an email per line
-s SUBJECT, --subject SUBJECT
Mail subject
-m MESSAGE, --message MESSAGE
Message to send
-b BACKGROUND, --background BACKGROUND
Background color by name or color code without # sign
-c TEXTCOLOR, --textcolor TEXTCOLOR
Message text color
```Examples
--------* Using parameters with default subject, background, and text color
```
python new_year_message_automator.py -f [email protected] -t [email protected] -m "I wish you a healthy and happy new year :)"
```
* Using parameters with custom subject and background color
```
python new_year_message_automator.py -f [email protected] -t [email protected] -m "I wish you a healthy and happy new year with your loved ones :)" -s "Happy New Year" -b indigo
```
* Interactive with default text color

