Get contact by email

The GetContactByEmail method retrieves the data for an existing contact in the dotMailer account using their email address.

Guidance Notes

This method can return contacts who are now suppressed in your account; please note that suppressed contacts cannot be sent to.

Parameters

username string This is the username from your API key. It is in the format of an email address and will look similar to apiuser‑908709770324@apiconnector.com required
password string This is the password from your API key. required
email string This is the email address of the contact which you wish to retrieve. required

Return values

contact contact This is the contact object for the email address provided.

Error responses

  • ERROR_CONTACT_NOT_FOUND
  • ERROR_APIUSAGE_EXCEEDED
  • ERROR_INVALID_LOGIN
  • ERROR_PARAMETER_INVALID
  • ERROR_SYSTEM_SERVICETEMPORARILYUNAVAILABLE
  • ERROR_UNKNOWN

Request

Example of use in C# .NET

Sample request

Sample response

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