public void SendTo(List <string> to) { foreach (string receipient in to) { Sendmail.Send(receipient, "Z3 Alerts", ReportTextHTML, null, _images, true); } }
static void Main(string[] args) { try { Configuration c = new Configuration("config.xml"); Sendmail.Send(c.developers, "Build failed at Windows (x86/x64)", "The build failed; please check the attached logfile for errors.", c.build_log); } catch (Exception ex) { Console.Out.WriteLine("Exception: " + ex.Message); } }