Share your API sample code

Our API enables you to share data and information between dotMailer and for example your CRM system, your marketing database, or your website.

We often get asked for sample code to get our dotMailer users started with the APIs so we've started the dotMailer Sample Code Gallery.

We're starting to collect samples of how to integrate the dotMailer API in various languages and we always need more! If you think you can improve what we have here, or have a sample in a language or framework we don't have yet please send us a copy! We'd be delighted to add it. Please get in touch if you have any code samples you'd like to share with us.

Sample code can be find on the page for each API method. We have sample code for C# for all methods, and for many others, we also have VB.NET and PHP.

Don't see what you want?

Join the dotMailer user community forums for additional support from API users and someone will be able to help you!

Example of use in C#

Example of use in VB.NET

Example of use in PHP

Call us on 020 8662 2762 to get your API switched on.


Get started with dotMailer:

Small & Medium businesses Large businesses
Call the team on 0845 337 9170
What our clients say:

“dotMailer has changed our complete marketing process for the better. It's one of the easiest apps I have used and allows us to do things we have only dreamed of before."

Amberley Shermon, Cazenove+Loyd