예제 #1
0
        public void VerifyConfig()
        {
            //检查邮箱格式
            SaveConfig();

            EmailSend email = new EmailSend();

            try
            {
                email.SendTestMail();
            }
            catch (SmtpException)
            {
                this.ConfigHint = "邮箱验证失败,请检查用户名和密码!";
                return;
            }
            this.ConfigHint = "已使用此配置向该邮箱发送了验证邮件,请查收!";
        }