Resubscribe contact

The ResubscribeContact method resubscribes a previously unsubscribed contact.

Guidance Notes

Resubscribes will often result in an email challenge being sent to the contact, giving the contact the opportunity to decline the resubcribe. The wording of this email is fixed, although it's possible to add a company logo to it via dotMailer (Contacts > Advanced Options > Resubscribe Settings). If a contact is added to an address book, any address book suppressions for that individual contact will be automatically cleared, regardless of the status transition that happened. For contacts who are challenged, the number of attempts to resubscribe that contact is limited. If you attempt to repeatadly call this method for challenged contacts, your calls will be suppressed.

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
APIContact Contact object The contact you wish to resubscribe. Any custom data in this object will be added as well. required
addressBookID int The book to add the contact to (if the contact is challenged, they'll only be added after responding to the challenge). required
preferredLocale RFC3066-compatible string The locale of the contact (such as en-GB or en-US). If the one supplied isn't available in dotMailer, it will fall back to en-GB. required
returnUrlToUseIfChallenged string If the contact is challenged before being permitted to resubscribe, this is the page they'll end up on if they successfully complete the resubscribe. required

Return values

result ContactAdded, ContactChallenged or ContactCannotBeUnsuppressed

Error responses

  • ERROR_ADDRESSBOOK_NOT_FOUND
  • ERROR_ADDRESSBOOK_NOTWRITABLE
  • ERROR_APIUSAGE_EXCEEDED
  • ERROR_CONTACT_INVALID
  • ERROR_CONTACT_TOOMANY
  • ERROR_DATAFIELD_NOTFOUND
  • ERROR_INVALID_EMAIL
  • ERROR_INVALID_LOGIN
  • 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