如何禁用 Mailchimp 双重选择加入 PHP [英] How to disable Mailchimp double opt-in PHP

查看:22
本文介绍了如何禁用 Mailchimp 双重选择加入 PHP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对 Mailshimp 的东西完全陌生,我在网上找不到任何东西来禁用双重选择加入.我不使用任何 Mailchimp API,我只是将 mailchimp 给我的表单放入我的 html.

I'm totally new in Mailshimp stuff and I can't find anything on the web to disable the double opt-in. I don't use any Mailchimp API, I just have the form mailchimp gave me to put in my html.

不使用 API 或如果我必须使用 API 的任何想法?

Any idea without using the API or if I have to, by using the API ?

谢谢!

推荐答案

   require('Mailchimp.php');
   $api = new Mailchimp( $api_key );

   $result = $api->lists->subscribe( $api_key, $id,  $data['email'], $merge_vars, 'html', false );

第 6 个参数定义是否禁用选择加入.将其传递为 false 将禁用它.

6th parameter defines that whether to disable the opt-in or not. Pass it as false will disable it.

更多信息参考:-http://apidocs.mailchimp.com/api/2.0/lists/subscribe.php

这篇关于如何禁用 Mailchimp 双重选择加入 PHP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆