zoukankan
html css js c++ java
邮件发送
**/
///
<summary>
///
发送邮件
///
</summary>
public
static
bool
SendEmailForGetpass(
string
name,
string
email,
string
random)
{
try
{
MailAddress from
=
new
MailAddress(
"
xxx@163.com
"
,
"
ShundeBK.cn
"
);
MailAddress to
=
new
MailAddress(email, name);
MailMessage message
=
new
MailMessage(from, to);
message.Subject
=
"
顺德百科 ShundeBK.cn 取回密码
"
;
message.Body
=
@"
<a href='http://shundebk.cn/passport/Setpass.aspx?code=
"
+
random
+
"
' target='_blank'>取回密码</a>;
message.Priority
=
MailPriority.High;
message.IsBodyHtml
=
true
;
SmtpClient client
=
new
SmtpClient(
"
smtp.163.com
"
);
client.Credentials
=
new
System.Net.NetworkCredential(
"
xxx
"
,
"
xxx
"
);
client.Send(message);
return
true
;
}
catch
(Exception e)
{
throw
e;
return
false
;
}
}
查看全文
相关阅读:
[HNOI2004]L语言
[TJOI2018]异或
如何定位低效SQL?
索引失效的情况有哪些?
trace的作用?
show profile的作用?
索引的使用原则
MySQL主从复制的步骤
什么是聚簇索引
什么是全文索引?
原文地址:https://www.cnblogs.com/yibinboy/p/1304142.html
最新文章
Sublime Text
轻薄如纸 无需插拔的 “石墨烯”U盘
随记
内网穿透
es命令测试
kibana使用
es初步搭建
jquery学习笔记
docker数据卷的操作
docker镜像常用操作的基本命令
热门文章
keepalived配置
nginx判断状态脚本
[P3768]简单的数学题
[NOI2014]魔法森林
[模板][P3377]杜教筛
[BOI2004]Sequence 数字序列
[国家集训队]Crash的数字表格
[NOI2010]能量采集
[模板][P3377]左偏树
[SDOI2017]数字表格
Copyright © 2011-2022 走看看