public static void _Main(string[] args) { Application.Run(new MailForm()); string d = ""; foreach (var a in args) { if (a.Contains(':')) { d = null; break; } d = d + a; } TMail x; if (d != null) { x = new TMail(new[] { d }); } else { x = new TMail(args); } x.send(); }
void m_OnSuccess(TMail obj) { MessageBox.Show("Message Send correctly"); }
void m_OnFail(TMail obj, string e) { MessageBox.Show("Message Failed\r\n" + e); }