$newsletter_subject_line = 'Test Mail';
$reply_to = 'test@test.com';
$from_name = 'test@test.com';
$MailChimp = new MailChimp('1234567890thisismyMailchimpAPI');
// Create new Campaign
$result = $MailChimp->post("campaigns", [
'type' => 'regular',
'recipients' => ['list_id' => '1234asdf1234'],
'settings' => ['subject_line' => $newsletter_subject_line,
'reply_to' => $reply_to,
'from_name' => $from_name
]
]);
This is how I send email campaigns via Mailchimp and PHP to a list of users I have. Is there a way that I can send this email to a specific user of this list ?
For example:
'recipients' => ['list_id' => '1234asdf1234/members/1234user1234']