如何将MailChimp集成到C#/。Net

|| 我想通过MailChimp发送电子邮件。 NET中如何做到这一点? 有人有示例代码吗? 谢谢。     
已邀请:
看一下CodePlex上的PerceptiveMCAPI:   PerceptiveMCAPI-对.NET友好   MailChimp Api的包装程序   在C#中使用感知逻辑。 http://perceptivemcapi.codeplex.com/     
以下示例将发送加入电子邮件: 首先安装NuGet软件包:Install-Package mcapi.net
    static void Main(string[] args)
    {
        const string apiKey = \"6ea5e2e61844608937376d514-us2\";   // Replace it before
        const string listId = \"y657cb2495\";                      // Replace it before

        var options = new List.SubscribeOptions();
        options.DoubleOptIn = true;
        options.EmailType = List.EmailType.Html;
        options.SendWelcome = false;

        var mergeText = new List.Merges(\"email@provider.com\", List.EmailType.Text)
                    {
                        {\"FNAME\", \"John\"},
                        {\"LNAME\", \"Smith\"}
                    };
        var merges = new List<List.Merges> { mergeText };

        var mcApi = new MCApi(apiKey, false);
        var batchSubscribe = mcApi.ListBatchSubscribe(listId, merges, options);

        if (batchSubscribe.Errors.Count > 0)
            Console.WriteLine(\"Error:{0}\", batchSubscribe.Errors[0].Message);
        else
            Console.WriteLine(\"Success\");

        Console.ReadKey();
    }
    
尝试使用mailchimp的最新服务-Mandrill(交易电子邮件服务) 您可以通过标准的smtp或api使用它。 http://mandrillapp.com/     
为了支持最新的Mail Chimp 3.0 API,可以在以下位置找到.Net的包装器: MailChimp.Net-邮件黑猩猩3.0包装器 https://github.com/brandonseydel/MailChimp.Net     
您可以在CodePlex上尝试以下操作: 麦皮网     
请查看Dan Esparza的https://github.com/danesparza/MailChimp.NET 您可以使用程序包管理器控制台安装程序包 安装包MailChimp.NET 代码示例 MailChimpManager mc =新的MailChimpManager(\“ YourApiKeyHere-us2 \”); ListResult列表= mc.GetLists(); 对于电子邮件发送和统计,Mailchimp提供了Shawn Mclean的Mandrill https://github.com/shawnmclean/Mandrill-dotnet 您可以使用以下方式安装Mandrill 安装包山d 代码示例 MandrillApi api =新的MandrillApi(\“ xxxxx-xxxx-xxxx-xxxx \”); UserInfo info =等待api.UserInfo();     

要回复问题请先登录注册