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 |