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
;
}
}
查看全文
相关阅读:
jquery跨域请求jsonp
php返回json,xml,JSONP等格式的数据
chrome常用配置
html body标签的几个属性 禁用鼠标右键,禁用鼠标选中文字等
jquery form表单序列号
php实时输出内容能够
php Xdebug调试
jsonp的简单例子
web调试的一些小技巧
jq动态增加的button标签click回调失效的问题,即动态增加的button标签绑定事件$("button.class").click(function)无效
原文地址:https://www.cnblogs.com/yibinboy/p/1304142.html
最新文章
趣味C++
33.Odoo产品分析 (四) – 工具板块(4) – 问题追踪及群发邮件营销(1)
34.Odoo产品分析 (四) – 工具板块(5) – 设备及联系人目录(1)
29.Odoo产品分析 (四) – 工具板块(2) – 搜索和仪表盘(1)
30.Odoo产品分析 (四) – 工具板块(2) – 搜索和仪表盘(2)
28.Odoo产品分析 (四) – 工具板块(1) – 项目(1)
26.Odoo产品分析 (三) – 人力资源板块(6) – 工资表(2)
25.Odoo产品分析 (三) – 人力资源板块(6) – 工资表(1)
ubuntu install librasterlit2 from source
install gdal from source on ubuntu
热门文章
cx_freeze multiprocessing 打包后反复重启
python socket.io 坑。
angular打包(三):pkg
angular打包(二):nw.js
angular打包(一): electron
在py文件中运行flask cli命令
读狼书,重温flask
用electrion打包angular成桌面应用
php接收到的json格式不标准,某个字段中的文本包含双引号的处理
remote_addr和x_forwarded_for
Copyright © 2011-2022 走看看