Skip to main content

Prerequisites

Using SDK

1

Install SDK

2

Initialize SDK

Get the API key from the useSend dashboard and initialize the SDK
If you are running a self-hosted version of useSend, pass the base URL as the second argument:
3

Send Email

Custom headers are forwarded as-is. useSend only manages the X-Usesend-Email-ID and References headers.

Adding contacts programatically

1

Get the contact book id

Get the contact book id from the useSend dashboard. Copy the contact book id
2

Add contacts

3

Update contact