//发送电子邮件的SMTP的服务器名称
WebMail.SmtpServer = "smtp.163.com";
//发送端口
WebMail.SmtpPort = 25;
//启用SSL(GMAIL需要),其他的都不需要
WebMail.EnableSsl = true;
//-----------配置
//账户名
WebMail.UserName = "guimeizhihou@163.com";
//邮箱名
WebMail.From = "guimeizhihou@163.com";
//密码
WebMail.Password = "xx";
//设置默认配置
WebMail.SmtpUseDefaultCredentials = true;
WebMail.Send(to: "28712194@qq.com", subject: "有活干啦", body: "很多的活啊。。");
WebMail.SmtpServer = "smtp.163.com";
//发送端口
WebMail.SmtpPort = 25;
//启用SSL(GMAIL需要),其他的都不需要
WebMail.EnableSsl = true;
//-----------配置
//账户名
WebMail.UserName = "guimeizhihou@163.com";
//邮箱名
WebMail.From = "guimeizhihou@163.com";
//密码
WebMail.Password = "xx";
//设置默认配置
WebMail.SmtpUseDefaultCredentials = true;
WebMail.Send(to: "28712194@qq.com", subject: "有活干啦", body: "很多的活啊。。");