private void Create(string externalKey) { var triggeredEmailCreator = new TriggeredEmailCreator(Config); Assert.DoesNotThrow(() => triggeredEmailCreator.CreateTriggeredSendDefinitionWithPasteHtml( externalKey, Priority.High), "Failed to create Triggered Email"); Assert.DoesNotThrow(() => triggeredEmailCreator.StartTriggeredSend(externalKey), "Failed to start Triggered Send"); }
private void Create(string externalKey) { var triggeredEmailCreator = new TriggeredEmailCreator(Config); Assert.DoesNotThrow(() => triggeredEmailCreator.CreateTriggeredSendDefinitionWithEmailTemplate( externalKey, "<html><head></head><style>.green{color:green}</style>", "</html>", Priority.High), "Failed to create Triggered Email"); Assert.DoesNotThrow(() => triggeredEmailCreator.StartTriggeredSend(externalKey), "Failed to start Triggered Send"); }
private void Create(string externalKey) { var triggeredEmailCreator = new TriggeredEmailCreator(Config); Assert.DoesNotThrow(() => triggeredEmailCreator.Create( externalKey, "<html>" + "<head>" + "<style>.green{color:green}</style>" + "</head>" + "<body>Hello %%FirstName%%, " + "<p>This is a templated email with custom fields.</p>" + "<p class='green'>Green Content: %%MyOwnValue%% ...</p>" + "<body>" + "<html>", Priority.High), "Failed to create Triggered Email"); Assert.DoesNotThrow(() => triggeredEmailCreator.StartTriggeredSend(externalKey), "Failed to start Triggered Send"); }
private static void StartTriggeredSend(string externalKey) { var triggeredEmailCreator = new TriggeredEmailCreator(GetConfig()); triggeredEmailCreator.StartTriggeredSend(externalKey); Console.WriteLine("Started triggered send"); }
private static void CreateTriggeredSendWithPasteHtml(string externalKey) { var triggeredEmailCreator = new TriggeredEmailCreator(GetConfig()); triggeredEmailCreator.CreateTriggeredSendDefinitionWithPasteHtml(externalKey); Console.WriteLine("Completed creating triggered send"); }
private static void CreateTriggeredSendWithTemplate(string externalKey) { var triggeredEmailCreator = new TriggeredEmailCreator(GetConfig()); triggeredEmailCreator.CreateTriggeredSendDefinitionWithEmailTemplate(externalKey, "<html><head><style>.red{color:red}</style></head>", "</html>"); Console.WriteLine("Completed creating triggered send"); }