EN | RU
- Written in pure GO
- Celery client integration
- Email templates with gohtml syntax supported
- Check if email was read
- All around nice guy letting everybody know about latest gossip in town
POST /api/list
- response is an ID for new mailing list
POST /api/list/{id}
- where id is ID list's ID gotten from creation
Request's body is a JSON struct with field names corresponding to user's information needed for Email template see Add user
POST /api/list/{id}/batch
- where id is ID list's ID gotten from creation
Request's body is a JSON array with structs where any individual struct is the same as with single user addition
GET /api/list/{id}
- response is an array of JSON structs of individual user's information in mailing list with specific ID
GET api/list/{id}/stat
- get information about who read email from mailing list
Checkout implementation Read statistics
POST /api/list/{id}/template
- request's body is a email template in text/html
html/template is used for email template implementation. This means that all syntax features of gohtml format
are available, see Basic template for a mailing list
POST /api/list/{id}
{
"email": "[email protected]",
"name": "Alice"
"bonuses": "1200",
"link": "season.shop/id=4535345432"
}
<html>
<body>
<h1>👋 Hello {{ .name}}</h1>
<p>You have {{ .bonuses}} bonusSeas 🐳</p>
<p>Spend them wisely on:
<ul>
<li>Whale rental 🐋</li>
<li>Steamboat tickets 💨</li>
<li>Investing in sea 🪣</li>
</ul>
</p>
<p>More inforamtion in your profile <a href="{{ .link}}"><span>here</span> </a></p>
</body>
</html>
## There are multiple better ways to construct an email HTML template, this is just a simple example
To: [email protected]
From: [email protected]
You have 1200 bonusSeas 🐳
Spend them wisely on:
- Whale rental 🐋
- Steamboat tickets 💨
- Investing in sea 🪣
More inforamtion in your profile here
Checking if an email has been read is implemented using RFC3798 header
You can also use service handler GET /api/{email}/read
to deliberately register that user with this {email}
has read the message
Function postman.mail(id)
takes a mailing list id as an argument and starts constructing and sending emails based on template provided for mailing list with this ID