How to integrate MailChimp in C#/.Net

前端 未结 6 1057
遇见更好的自我
遇见更好的自我 2021-01-30 14:26

I want to send email through MailChimp. How to do this in .Net?

Does any one have sample code?

Thanks.

6条回答
  •  礼貌的吻别
    2021-01-30 15:19

    Do Check out https://github.com/danesparza/MailChimp.NET by Dan Esparza You can install the package by using Package Manager Console

    Install-Package MailChimp.NET

    Code example

    MailChimpManager mc = new MailChimpManager("YourApiKeyHere-us2");
    ListResult lists = mc.GetLists();

    For email sending and stats, Mailchimp offers Mandrill by Shawn Mclean https://github.com/shawnmclean/Mandrill-dotnet

    You can install Mandrill using

    Install-Package Mandrill

    Code example

    MandrillApi api = new MandrillApi("xxxxx-xxxx-xxxx-xxxx");
    UserInfo info = await api.UserInfo();

提交回复
热议问题