danesparza / MailChimp.NET

:envelope: .NET Wrapper for the MailChimp v2.0 API
MIT License
179 stars 119 forks source link

Send emails over api #211

Closed mitotomi closed 3 years ago

mitotomi commented 4 years ago

Hi, sorry but there is no example and could not find this one. There is an issue like this before, but i think i missed something or it is not possible to do it on free plan ?

       ```
         Campaign cp = new Campaign()
        {
            Recipients = new Recipient() { ListId = mailingListId },
            Type = CampaignType.Regular,
            Id = campaignId,
            //...
            Settings = new Setting()
            {
                //...
                TemplateId = templateId,
                ReplyTo = "somemail",
                FromName = "Tomo testira mailchimp",
                Title = "Testiranje",
                SubjectLine = "Test",

            }
        };

        var campaignResult = await _mailChimpManager.Campaigns.AddOrUpdateAsync(cp);
        _mailChimpManager.Campaigns.SendAsync(campaignResult.Id).Wait();

I got all ids from api and know they are correct. What i would like to do is send emails to this list of users, and they should get email with this template. Am I missing something?

danesparza commented 3 years ago

To be honest, I'm not sure if version 2.x of the API is even supported anymore.

Are you getting an error when you attempt to do this?

mitotomi commented 3 years ago

well i missed thing that one mail is one campaign so you could not send same campaign again that would be great to be in documentation, like some tutorial how to send campaign

danesparza commented 3 years ago

@mitotomi - you're welcome to add it 😄 I accept pull requests