To send a campaign, you must use the NewslattersManager class. It exposes the SendCampaign method and theSendCampaignCompleted event. The following code sends a campaign through the Native API.
SendCampaign( Guid campaignId )
NewslettersManager manager = NewslettersManager.GetManager();
( tooManySubscribers )
//implement logic that handles the case,
//when there are too many subscribers for the selected campaign.
sender, AsyncCompletedEventArgs e )
//implement logic that should be executed after the campaign is send.
//e.g. display a "Capaign successfully send!" message.
First, you initialize the NewslettersManager. Then, you attach an event handler for the SendCampaignCompleted event. Then, you callSendCampaign to send the campaign. Finally, you check whether the tooManySubscribers parameter is true.