zoukankan
html css js c++ java
发邮件
private
bool
SendMail(
string
systemEmail,
string
emailAddress,
string
subject,
string
body,
bool
isBodyHtml)
{
try
{
MailMessage message
=
new
MailMessage(systemEmail, emailAddress);
message.Subject
=
subject;
message.Body
=
body;
message.IsBodyHtml
=
isBodyHtml;
//
true;
SmtpClient client
=
new
SmtpClient();
client.Host
=
ConfigurationSettings.AppSettings[
"
SMTPAddress
"
].ToString();
client.Send(message);
AlertMessage(
"
Sent mail sucess!
"
);
return
true
;
}
catch
(Exception ex)
{
//
msgTool.Add("SMTPERROR");
AlertMessage(
"
SMTPERROR
"
);
return
false
;
}
}
SendMail([Supervisor Email], PO number, isHtml);
查看全文
相关阅读:
(MonoGame从入门到放弃2) 初识MonoGame
C# 13行代码带你模拟登录QQ空间
(MonoGame从入门到放弃1) MonoGame环境搭建
Format 、FormatDateTime 与 FormatFloat
HTML中的em为何物?
ASP.NET日期格式函数
解决windows2003不能上传大于200K的问题
信用卡知识知多少?
解决:Win7打开控制面板主页就重启
ASP.NET生成随机密码
原文地址:https://www.cnblogs.com/ZhengGuoQing/p/1095445.html
最新文章
轻量级爬虫+全文检索解决方案项目——NukeLite(20081114 更新r24版 引入新线程机制)
写给设计人的10个jQuery特效
[转]初识Firebug 全文 — firebug的使用
[转]Singleton 模式
[转]div基本构架
用Dos命令进行加锁 防止病毒格式化硬盘
被神化的框架
临江仙5首
[转]个人毕业5年职业感想
Firebug中你不该错过的几个功能
热门文章
SqlServer中decimal(numeric )、float 和 real 数据类型的区别
文件夹同步
ParentWindows
An error occurred while attempting to initialize the Borland Database Engine (error $2108)
Owner,Parent,Self,Sender,Clientheight,Height
Delphi 中的颜色
组件数组
颜色操作及相关函数
几个字符串函数
TwwDBGrid自动列宽
Copyright © 2011-2022 走看看