This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require __DIR__ . '/vendor/autoload.php'; | |
use \DrewM\MailChimp\MailChimp; | |
$mc = new MailChimp('<your-mailchimp-api-key>'); | |
// list ID | |
// When a user unsubscribes from the list, they cannot be subscribed again | |
// via the API, so use a unique list for this mailing purpose |