Exemple #1
0
        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);
        }
Exemple #2
0
 public static void Send(string to, string subject, string message)
 {
     EmailUtil.Send(ConfiguracaoAppUtil.Get(enumConfiguracaoGeral.emailDefaultSender), to, subject, message);
 }
Exemple #3
0
 public static void Send(string fromName, string from, string toName, string to, string subject, string message)
 {
     EmailUtil.Send(fromName + " <" + from + ">", toName + " <" + to + ">", subject, message);
 }