I am executing a curl call via php to Mailchimp API v3.0. When a user sign up to my cms, I sent him a confirmation email and add a member to a specific Mailchimp list, calling this URL:
'https://us11.api.mailchimp.com/3.0/lists/'.$list_id.'/members/';
passing those parameters:
$data = array(
'apikey' => $apikey,
'email_address' => $mailchimp_user['email'],
'status' => 'pending',
'update_existing' => true,
'send_welcome' => false,
'double_optin' => false,
'merge_fields' => array(
'FNAME' => $mailchimp_user['FNAME'],
'LNAME' => $mailchimp_user['LNAME']
)
);
The Mailchimp pending subscription is successful. When the user click in the confirmation email sent from my cms, with another curl (PATCH method) call, I can easily update the member status to 'subscribed'. So I can manage all the Mailchimp subscription from my cms, without any Mailchimp default behavior and layouts.
But the default Mailchimp Confirmation email is never sent to the user, even if the 'double_optin' param is false.
I noticed that if I set the member status to 'unsubscribed' the user did not receive the confirmation email. But it is logically wrong!
I'd like that the two steps for Mailchimp subscription should be
pending -> subscribed
and not
unsubscribed -> subscribed.
Can I do something about it?