public void TestEmptyWithSubject() { var emailRpt = new EmailReport(_config) { Subject = "Empty Test email with subject" }; emailRpt.Send(false); }
public void TestEmptyWithSubjectCC() { var emailRpt = new EmailReport(_config) { Subject = "Empty Test email with subject", CC = "*****@*****.**" }; emailRpt.Send(false); }
public void TestHtmlReport() { var rpt = getXmlString(); var xsl = getXslString(); var html = TransformReport(rpt, xsl); var tempPath = Path.GetTempPath(); var htmlPath = Path.Combine(tempPath, @"temp.html"); File.WriteAllText(htmlPath, html); var emailRpt = new EmailReport(_config) { Subject = "Test Report email", Report = htmlPath, CC = @"*****@*****.**" }; emailRpt.Send(true); }
public void TestEmptyEmailSend() { var emailRpt = new EmailReport(_config); emailRpt.Send(false); }