GetContactByEmail

Gets a contact by email address

This method retrieves a contact in your account using the contact's email address.

SOAP action: http://apiconnector.com/v2/ApiService/GetContactByEmail

📘

Input and output parameters

The input and output parameters for this method are:

Input parameters

  • Email - required; string

Output parameters

  • GetContactByEmailResult
    • Id - integer
    • Email - string
    • OptInType - string ('Unknown', 'Single', 'Double', 'VerifiedDouble')
    • EmailType - string ('PlainText', 'Html')
    • DataFields - optional; array of ContactData
      • ContactData
        • Key - string
        • Value - anyType
    • Status - string ('Subscribed', 'Unsubscribed', 'SoftBounced', 'HardBounced', 'IspComplained', 'MailBlocked', 'PendingOptIn', 'DirectComplaint', 'Deleted', 'SharedSuppression', 'Suppressed', 'NotAllowed', 'DomainSuppression', 'NoMxRecord')

Example

using (var client = new ApiServiceClient())
{
	client.ClientCredentials.UserName.UserName = "username";
	client.ClientCredentials.UserName.Password = "password";

	var email = "[email protected]";
	var contact = client.GetContactByEmail(email);
}