-
Notifications
You must be signed in to change notification settings - Fork 34
Getting Started
Igor Balos edited this page Oct 1, 2018
·
25 revisions
Getting started with Postmark is very easy. In order to start using 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.
var postmark = require("postmark");
// Example request
var client = new postmark.Client("<server token>");
client.sendEmail(
{
From: "[email protected]",
To: "[email protected]",
Subject: "Hello from Postmark!",
HtmlBody: "Hello message body."
}
).then(response => {
console.log("Sending message");
console.log(response.To);
console.log(response.Message);
});
Please note that 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.
For additional information about the capabilities of the Postmark API, see Postmark Developers Documentation.
- Overview
- Migration from older version
- Getting started
- Email sending
- Bounces
- Templates
- Templates Push
- Server
- Servers
- Message Streams
- Webhooks
- Messages
- Domains
- Sender Signatures
- Stats
- Trigger Inbound Rules
- Suppressions
- Data Removal
- Embedding images in emails
- Error Handling
- Handling Web Hooks
- Mocking requests
- Troubleshooting
- Known issues and how to resolve them