var email = new Dynamicweb.Modules.EmailMarketing.Email(); email.SenderEmail = "noreply@domain.dk"; email.SenderName = "Domain"; email.Subject = "Nyt fra domain"; email.DomainName = "www.domain.dk"; email.PageId = 241; var recipientProvider = email.RecipientProvider as AccessUserRecipientProvider; if (recipientProvider != null) { recipientProvider.SetIds(new List<string> { "u7938", "u7917" }); } email.CreateEmailScheduledTask(DateTime.Now);