All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
javascript应用实例:网页折叠菜单_JavaScript技术_编程技术
PHP学习宝典-第九章_[PHP教程]
制作“You Are Here”按钮_[Html教程]
[delphi语法2]子界类型
实例讲解PHP中实现代码重用的两个函数_php资料_编程技术
扩展GridView控件(九)——给数据行增加右键菜单_[Asp.Net教程]
ASP.NET,2.0服务器控件之处理回传数据_[Asp.Net教程]
PHP对特殊语句查询结果进行数组排序_php资料_编程技术
C#中常用的集合类型
PHP的print函数_[PHP教程]
Reading number is top 10 pictures
Fan bingbing black wings for platform and DanLuoWang believes beauty2
Summer is most suitable for young people to travel in China10
Sell the barbecue as says father du breul1
Seductive beauty of crime2
Men's and women's orgasms
The service WaLiangGe Chinese aircraft carrier1
A man's favorite things7
Valentine's day comes, send some cartoon
清醇靓丽的美眉
HongMenYan premiere XinLiangGong clairvoyant outfit PK YiFeiLiu1
Download software ranking
Unix video tutorial10
虚拟机5.5.3版
Call Of Duty5
VC++6.0简体中文版
美女游泳记
小黑猫大战两米大花蛇
1400篇各类破解文章
超级战舰
Boxer's Top ten classic battle4
功夫熊猫2(上集)
aaa published in(发表于) 2013/12/15 8:40:06 Edit(编辑)
Asp.net

Asp.net

Asp.net(c#)发送电子邮件_.net资料_编程技术-你的首页-uuhomepage.com







using System.web.Mail;




MailMessage msg = new MailMessage();
//发送方地址(如test@163.com)
msg.From = "zdyguilong@163.com";
//接收方地址(如test@163.com)
msg.To = "zdyguilong@163.com";
//正文内容类型
msg.BodyFormat = MailFormat.Html;
//正文内容编码
msg.BodyEncoding = System.Text.Encoding.Default;
//主题
msg.Subject = "张大宇向您问好";
//内容
msg.Body = "用户名:" + UserName.Text.Trim() + "
密码:" + strUserPsw.ToString() + "
验证地址:http://192.168.1.98/AllFiles/Member/CheckFromEmail.aspx?UserName=" + UserName.Text.Trim() + "。如果您不能点击链接进行跳转,请把这个地址粘贴到浏览器的地址栏直接访问。
此邮件不必回复,谢谢。";
//设置为需要用户验证
msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1");
//设置验证用户名
msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "zdyguilong");
//设置验证密码
msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "123456");
//邮件服务器地址(如smtp.163.com)
SmtpMail.SmtpServer = "smtp.163.com";
//发送
SmtpMail.Send(msg);
//Response.Write("");






















添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.