会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Road
往来千里路长在, 聚散十年人不同
博客园
首页
新随笔
联系
管理
订阅
发邮件
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);
posted @
2008-03-07 17:11
zhengguoqing
阅读(
276
) 评论(
0
)
编辑
收藏
举报
会员力量,点亮园子希望
刷新页面
返回顶部
公告