modulepackage
0.0.0-20231009123607-1391c1fc8ecb
Repository: https://github.com/modfin/mmailer.git
Documentation: pkg.go.dev
# README
mMailer
Unify email services into 1 api for transactional email, have redundancies, traffic and avoid vendor locking
SELECT_STRATEGY=RoundRobin \
SERVICES="generic:smtp://user:[email protected]:25 mailjet:pubkeyXXXX:secretkeyYYYY" \
mmailerd
# Services:
# - Generic: posthooks are not implmented, adding smtp://user:[email protected]: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
curl 'http://localhost:8080/send' \
--data-binary \
$'{"from": {"email": "[email protected]",
"name": "Jon Doe" },
"to": [{"email": "[email protected]",
"name": "Jane Doe"}],
"subject": "A subject",
"html": "<p><strong>Hey</strong> this is where the html gos</p>"
}' --compressed
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
Receiving server could not or would not accept message.
Recipient clicked on a link within the message.
Recipient's email server temporarily rejected message.
Message has been successfully delivered to the receiving server.
No description provided by the author
Recipient has opened the HTML message.
Recipient marked a message as spam.
No description provided by the author
Recipient clicked on message's subscription management link.
# Interfaces
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author