https://github.com/ThomasJay/PythonEmailService
Microservice in Python to send email via SMTP using Flask with Health Check end point
https://github.com/ThomasJay/PythonEmailService
Last synced: 7 months ago
JSON representation
Microservice in Python to send email via SMTP using Flask with Health Check end point
- Host: GitHub
- URL: https://github.com/ThomasJay/PythonEmailService
- Owner: ThomasJay
- Created: 2024-01-21T00:43:24.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-21T19:01:43.000Z (over 1 year ago)
- Last Synced: 2024-08-13T07:07:42.606Z (10 months ago)
- Language: Python
- Size: 3.91 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - ThomasJay/PythonEmailService - Microservice in Python to send email via SMTP using Flask with Health Check end point (Python)
README
# PythonEmailService
Microservice in Python to send email via SMTP using Flask with Health Check end pointgit clone [email protected]:ThomasJay/PythonEmailService.git
cd PythonEmailService
python3 -m venv venv
Install all Libs
pip3 install -r requirements.txt
source venv/bin/activate
python3 email_service.py
curl -X GET http://localhost:8085/api/v1/health
curl -X POST http://localhost:8085/api/v1/send \\n -H 'Content-Type: application/json' \\n -d '{"email" : "[email protected]", "subject" : "Hi there you", "message" : "This message is sent from Python3"}'\n