https://github.com/normcyr/sendmail
Python script with config files to send emails
https://github.com/normcyr/sendmail
Last synced: about 2 months ago
JSON representation
Python script with config files to send emails
- Host: GitHub
- URL: https://github.com/normcyr/sendmail
- Owner: normcyr
- Created: 2018-04-18T18:09:10.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-16T19:58:01.000Z (over 6 years ago)
- Last Synced: 2025-02-14T23:38:47.481Z (4 months ago)
- Language: Python
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Purpose
**sendmail** is a Python script with config files to send emails. The ultimate objective of the project will be to automate certain emailing functions required in a day-to-day workflow.
## Requirements
- Python 3
- [PyYAML](https://pyyaml.org/)## Usage
First, clone the repo from the command line interface.
```bash
git clone https://github.com/normcyr/sendmail.git
```Rename the config and announcement text files to their proper names.
```bash
cd sendmail
mv config.yml.example config.yml
mv announcement.txt.example announcement.txt
```Edit the config.yml file to suit your needs.
```bash
nano config.yml
```You may want to use your email address for both `from_address` and `to_address` addresses in order to test it first.
```yaml
server:
address: smtp.example.com
port: 587
authentification: True
login:
username: [email protected]
password: 1234567890123456
addresses:
from_address: [email protected]
to_address: [email protected]
msg_info:
subject: Test message
```Edit the announcement.txt file to suit your needs. Replace the text for the message you want to send.
```bash
nano announcement.txt
```Finally, try the script!
```bash
python sendmail.py
```