https://github.com/modfin/mmailer
Service that unifies third party email providers, Mandrill, Sendgrid, Mailjet and generic SMTP into a an api
https://github.com/modfin/mmailer
mail mailchimp mailjet mandrill sendgrid smtp
Last synced: 6 months ago
JSON representation
Service that unifies third party email providers, Mandrill, Sendgrid, Mailjet and generic SMTP into a an api
- Host: GitHub
- URL: https://github.com/modfin/mmailer
- Owner: modfin
- Created: 2021-12-02T13:31:48.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-09-30T11:56:02.000Z (about 1 year ago)
- Last Synced: 2025-03-29T11:11:23.016Z (6 months ago)
- Topics: mail, mailchimp, mailjet, mandrill, sendgrid, smtp
- Language: Go
- Homepage:
- Size: 80.1 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSES_DEP
Awesome Lists containing this project
README
# mMailer
**Unify email services into 1 api for transactional email, have redundancies, traffic and avoid vendor locking**```bash
SELECT_STRATEGY=RoundRobin \
SERVICES="generic:smtp://user:pass@smtp.server.com:25 mailjet:pubkeyXXXX:secretkeyYYYY" \
mmailerd
# Services:
# - Generic: posthooks are not implmented, adding smtp://user:pass@smtp.server.com:25
# - Mailjet: add the following posthook url example.com/path/to/mmailer/posthook?service=mailjet
# Select Strategy: RoundRobin
# Retry Strategy: None# > Send mail by HTTP POST example.com/path/to/mmailer/send?key=
# Starting server, :8080
``````bash
curl 'http://localhost:8080/send' \
--data-binary \
$'{"from": {"email": "jon.doe@example.com",
"name": "Jon Doe" },
"to": [{"email": "jane.doe@example.com",
"name": "Jane Doe"}],
"subject": "A subject",
"html": "Hey this is where the html gos
"
}' --compressed
```