Skip to content

Double opt in doesn't work - Redirection issues #112

@itsdun

Description

@itsdun

Hi sendinblue Team,

the double opt in feature is not working for me. The email is sent correctly to the given email address, but when i click the confirmation-button inside mail, i get a blank page and a error in chrome console: Uncaught DOMException: Failed to set the 'href' property on 'Location': 'http://' is not a valid URL.
at HTMLIFrameElement.onload

I've played around with different redirectionUrls and also without this parameter, no success.

Code:

$apiInstance = new \SendinBlue\Client\Api\ContactsApi(
    new \GuzzleHttp\Client(),
    $config
);
$createDoiContact = new \SendinBlue\Client\Model\CreateDoiContact(
    [
        'email' => 'mail@example.com',
        'redirectionUrl' => '<url>',
        'includeListIds' => [2],
        'templateId' => 2,
    ]
);
try {
    $apiInstance->createDoiContact($createDoiContact);
} catch (\Exception $e) {
    echo $e->getMessage(), PHP_EOL;
}

Regards,
Marco

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions