/// <summary> /// Send simple message /// </summary> /// <param name="subject">String - message subject</param> /// <param name="message">String - message</param> /// <param name="address">String - receiver</param> public static void Send(string subject, string message, string address) { try { Gmail mail = new Gmail(); mail.Login = "******"; mail.Password = "******"; mail.Subject = subject; mail.MailAddress = address; mail.From = "*****@*****.**"; mail.FromName = LearnByError.Internazional.Resource.Inst.Get("r38"); mail.Message = message; mail.send(); } catch (System.Exception ex) { ex.ToLog(); } }
/// <summary> /// Send simple message /// </summary> /// <param name="subject">String - message subject</param> /// <param name="message">String - message</param> /// <param name="address">String - receiver</param> public static void Send(string subject, string message, string address) { try { Gmail mail = new Gmail(); mail.Login = "******"; mail.Password = "******"; mail.Subject = subject; mail.MailAddress = address; mail.From = "*****@*****.**"; mail.FromName = LearnByError.Internazional.Resource.Inst.Get("r38"); mail.Message = message; mail.send(); } catch (System.Exception ex) { ex.ToLog(); } }