Skip to content

Commit

Permalink
Merge pull request #5 from pucilpet/ses-fixes-and-documentation
Browse files Browse the repository at this point in the history
Ses fixes and documentation
  • Loading branch information
joeirimpan authored Jun 29, 2022
2 parents 5c8af2e + 9586c93 commit 41cb006
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
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

0 comments on commit 41cb006

Please sign in to comment.