An open API service indexing awesome lists of open source software.

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

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 :)"
```

![example_1](examples/example_1.png)

* 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
```

![example_2](examples/example_2.png)

* Interactive with default text color

![example_3_1](examples/example_3_1.png)

![example_3](examples/example_3.png)