Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ses fixes and documentation #5

Merged
merged 2 commits into from
Jun 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 17 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,40 @@
<a href="https://zerodha.tech"><img src="https://zerodha.tech/static/images/github-badge.svg" align="right" /></a>

## listmonk-messenger

Lightweight HTTP server to handle webhooks from [listmonk](https://listmonk.app) and forward it to different messengers.

### Supported messengers

* Pinpoint
* AWS SES
- Pinpoint
- AWS SES\*

(\*) Please note: Due to a recent change in code, you need to use the master branch of [listmonk](https://listmonk.app) in order to send messages with AWS SES.

### Development

* Build binary
- Build binary

```
make build
```

* Change config.toml and tweak messenger config
- Change config.toml and tweak messenger config

Run the binary which starts a server on :8082

```
./listmonk-messenger.bin --config config.toml --msgr pinpoint --msgr ses
```

* Setting up webhooks
![](/screenshots/listmonk-setting-up-webhook.png)
- Setting up webhooks
![](/screenshots/listmonk-setting-up-webhook.png)

* Add messenger specific subscriber atrributes in listmonk
![](/screenshots/listmonk-add-subsriber-attrib.png)
- Add messenger specific subscriber atrributes in listmonk
![](/screenshots/listmonk-add-subsriber-attrib.png)

* Add plain text template
![](/screenshots/listmonk-plain-text-template.png)
- Add plain text template
![](/screenshots/listmonk-plain-text-template.png)

* Change campaign messenger
![](/screenshots/listmonk-change-campaign-mgr.png)
- Change campaign messenger
![](/screenshots/listmonk-change-campaign-mgr.png)
1 change: 1 addition & 0 deletions messenger/ses.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ func (s sesMessenger) Push(msg Message) error {

email := smtppool.Email{
From: msg.Campaign.FromEmail,
To: []string{msg.Subscriber.Email},
Subject: msg.Subject,
Sender: msg.From,
Headers: msg.Headers,
Expand Down