keepsuit / laravel-zoho-campaigns

Manage Zoho Campaigns from Laravel
MIT License
1 stars 1 forks source link

Adding a email to a list and get no confirmation email #22

Open chadpriddle opened 6 months ago

chadpriddle commented 6 months ago

Thanks for the code.

I was trying to add an email to my list and nothing was happening so I went into the class and dumped the response from the API server and I got this:

array:5 [▼ // vendor/keepsuit/laravel-zoho-campaigns/src/Api/ZohoCampaignsApi.php:49 "code" => "0" "message" => "A confirmation email is sent to the user. User needs to confirm to successfully subscribe." "version" => "1.1" "uri" => "/api/v1.1/json/listsubscribe" "status" => "success" ]

Interestingly enough I was never getting the confirmation email, so then I realized by default the double-opt-on feature was enabled. Disabled that and all works as expected.

Hope this helps someone troubleshoot, may want to add this small bit of info in the readme: Settings->General->Manage Opt-In->Disable Double opt-in

Also maybe add an exception class if it fails

andreibaca commented 6 months ago

Double opt-in is a requirement in some countries. And zoho will stop your compaign if you have too many users that are not marked as opt-in.