Skip to content

Getting Started

Igor Balos edited this page Nov 9, 2017 · 13 revisions

Getting started with Postmark is very easy. In order to start using full potential of Postmark API, you will need to:

Account API token is needed only for admins, for managing account details like domains, signatures, etc. To read more about tokens, check out our developer docs.

Sending your first email

Sending email with Postmark is super easy, check out the following code example.

ApiClient client = Postmark.getApiClient(<server token>);
Message message = new Message(<sender signature>, "[email protected]", "Hello from Postmark!", "Hello message body");
MessageResponse response = client.deliverMessage(message);

Please note that in in the code example above you need to change to a server token from your account, and you need to change to a verified signature (from address), you created in your account.

Next, we will check out more advanced sending techniques and other API features. Check out our wiki pages sidebar for details.