-
Notifications
You must be signed in to change notification settings - Fork 21
Getting Started
Getting started with Postmark is very easy. In order to start using the full potential of Postmark API, you will need to:
- Signup for a new account
- Retrieve a Server API token, from one of the servers you created in your account
- Retrieve an Account API token (optional)
- Create a sender signature
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 email with Postmark is super easy, check out the following code example.
ApiClient client = Postmark.getApiClient(<server token>);
Message message = new Message(<sender signature>, "igor@example.com", "Hello from Postmark!", "Hello message body");
MessageResponse response = client.deliverMessage(message);
Please note that in in the code example above you need to change <server token>
to a server token from your account, and you need to change <sender signature>
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.
For additional information about the capabilities of the Postmark API, see Postmark Developers Documentation.