Vanilla spring version of handling postmark's rest-api.
Features:
- Deliver Message
- Deliver Batch Messages
- MessageResponse
- WebhookMessages (to receive email stats via webhook)
- Stats / Bounce / Templates
- Server / OutboundMessages / InboundMessages
default | explanation | |
---|---|---|
postmark.token | required | server-api-token of postmark |
postmark.api.url | https://api.postmarkapp.com/ | normally no change is required |
postmark.api.header | X-Postmark-Server-Token | normally no change is required |
@Resource
private PostmarkClient postmarkClient;
Message msg = new Message("[email protected]", "[email protected]", "postmark-spring test", "<h1>hello</h1><p>Great it works</p>", "hello\nGreat it works");
MessageResponse rsp = postmarkClient.deliverMessage(msg);