Opt-In an email returns False

Hi, im trying to Opt-In an email via api call:

$infusionsoft->emails('xml')->optIn($email, $optInReason);

im getting false response, can anyone help me how to fix this?


False will return under all circumstances except the condition that the email address is currently unmarketable but NOT opted out. In this case, and in this case alone, you will get true. So if an email is unmarketable and isn’t opted out you will get true. However, if the email is then called for optin again you will get false, because you can’t re-optin an email that’s already opted in. For this reason there is only one condition and one time per email that you will get true.

1 Like