Skip to content

rocketbase-io/postmark-spring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

postmark-spring

postmark-spring

build Maven Central

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

configuration

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

usage

@Resource
private PostmarkClient postmarkClient;

Message msg = new Message("from@rocketbase.io", "to@rocketbase.io", "postmark-spring test", "<h1>hello</h1><p>Great it works</p>", "hello\nGreat it works");
MessageResponse rsp = postmarkClient.deliverMessage(msg);

About

postmark api client in vanilla spring without other dependencies

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages