如何使用asp.net中的邮件黑猩猩向新闻通讯订阅者发送电子邮件?

时间:2013-02-08 22:03:31

标签: c# asp.net mailchimp

我使用以下代码向网站中的新闻订阅者发送电子邮件,但此代码似乎不起作用,任何人都可以指导我,如何在asp.net网站中整合邮件黑猩猩: -

 listSubscribe cmd = new listSubscribe();

        listSubscribeParms newlistSubscribeParms = new listSubscribeParms
        {
            apikey = apikey,
            id = "1",
            email_address = "test@gmail.com",
            merge_vars = new Dictionary<string, object>(),
            double_optin = false,
            email_type = EnumValues.emailType.html,
            replace_interests = true,
            send_welcome = false,
            update_existing = true
        };

        listSubscribeInput newlistSubscribeInput = new listSubscribeInput(newlistSubscribeParms);

        var subscribeSuccess = cmd.Execute(newlistSubscribeInput);

0 个答案:

没有答案