一旦我确定了我的列表段的电子邮件地址(使用get_emails()
自定义函数,我将按如下方式设置我的列表段:
$batch = get_emails();
//now create my list segment:
$api->listStaticSegmentAdd(WEDDING_LIST_ID, 'new_wedding_guests');
$api->listStaticSegmentMembersAdd(WEDDING_LIST_ID, 'new_wedding_guests', $batch);
//do I build vars for a campaign?
$options = array (
'list_id' => WEDDING_LIST_ID, //What value id's my list segment?
'subject' => 'Alpha testing.',
'from_email' => 'wedding@juicywatermelon.com',
'from_name' => 'Pam & Kellzo',
'to_name' => $account->name,
);
从这里我可以使用基本活动并发送吗?
$content['text'] = "Some text.";
$content['html'] = get_link($account);
$cid = $api->campaignCreate('regular', $options, $content);
$result = $api->campaignSendNow($cid);
我不确定我是否正确理解了 api 文档。我还尝试'list_id' => 'new_wedding_guests';
了未能创建广告系列的方法。
谢谢!