take http request and send to smtp server
- Register a yahoo email if you don't have.
- Go to https://login.yahoo.com/myaccount/security/
- Click Generate and manage app passwords
- Enter the app name, it is only a description.
- Click Generate password
- Write down the password generated, we need it.
PORT=8888
SMTP_HOST=smtp.mail.yahoo.com
SMTP_PORT=465
SMTP_USER=<username>@yahoo.com
SMTP_PASSWORD=<password-from-step-1>
services:
http2smtp:
image: jindongh/http2smtp:latest
restart: unless-stopped
env_file:
.env
ports:
- "8888:8888"
docker compose up -d
YAHOO_EMAIL=<user>@yahoo.com
curl "localhost:8888?to=${YAHOO_EMAIL}&subject=test%20http2smtp&content=hello%20from%20http2smtp"