public static void Send(string from, string to, string subject, string message) { MailMessage mail = new MailMessage(ConfiguracaoAppUtil.Get(enumConfiguracaoGeral.emailDefaultSender), to, subject, message); if (from != ConfiguracaoAppUtil.Get(enumConfiguracaoGeral.emailDefaultSender)) { mail.ReplyToList.Add(from); } mail.IsBodyHtml = true; EmailUtil.Send(mail); }
public static void Send(string to, string subject, string message) { EmailUtil.Send(ConfiguracaoAppUtil.Get(enumConfiguracaoGeral.emailDefaultSender), to, subject, message); }
public static void Send(string fromName, string from, string toName, string to, string subject, string message) { EmailUtil.Send(fromName + " <" + from + ">", toName + " <" + to + ">", subject, message); }