Example #1
0
        public static void SendRecoverPassword(string email, string subject, string linkConfirm, string plainText)
        {
            int    port = TechOfficeConfig.PORT;
            string host = TechOfficeConfig.HOST;
            string from = TechOfficeConfig.FROM;
            string user = TechOfficeConfig.USERNAME;
            string pass = TechOfficeConfig.PASSWORD;

            SmtpMailSender.Email(host, email, "", subject, from, "Phong Noi Vu Huyen Phu Rieng", user, pass, null, linkConfirm, plainText, MailType.RecoverPass, MailPriority.High);
        }
Example #2
0
        public static void SendFeedback(string email, string subject, string content, MailAttachment[] files)
        {
            int    port = TechOfficeConfig.PORT;
            string host = TechOfficeConfig.HOST;
            string from = TechOfficeConfig.FROM;
            string user = TechOfficeConfig.USERNAME;
            string pass = TechOfficeConfig.PASSWORD;

            SmtpMailSender.Email(host, email, content, subject, from, "Phong Noi Vu Huyen Phu Rieng", user, pass, files, "", null, MailType.Feedback, MailPriority.Normal);
        }