大虾们:小弟有一棘手的问题帮帮忙啊? 怎么样用.net(c#)做外发邮件啊? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 很多阿,直接csdn搜索邮件帖子太多了。代码也很多。 http://www.c-sharpcorner.com/UploadFile/ivar/SMTPPOP3MailServer12072005040130AM/SMTPPOP3MailServer.aspx?ArticleID=56623ea9-134e-47f0-9579-ff6aa793e103http://www.c-sharpcorner.com/UploadFile/ivxivx/SMTPPOP3IMAPLibrary12072005012506AM/SMTPPOP3IMAPLibrary.aspx?ArticleID=01a32901-2e50-4849-9c14-8171c4dbbeffhttp://www.c-sharpcorner.com/UploadFile/sushmita_kumari/SendingMail101062006054220AM/SendingMail1.aspx?ArticleID=91ece6d8-eaaf-41ab-ac6f-533dc215eacf MailMessage mail=new MailMessage();;mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1" ); //basic authenticationmail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "username" ); //username是你163的用户名字// 设置smtp服务器登录账号(如您163.com的信箱账号)password为你163邮箱的密码 当然你有自己的邮件服务器 可以用你自己邮件服务器分给你的邮件地址的用户名称 用户密码mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "password"); mail.To=TextBox1.Text;mail.From=TextBox2.Text;//这里要填你的邮箱地址,才能发送成功 比如你的163用户名字为123 那么你在这里要填[email protected]mail.Subject=TextBox3.Text;if(Format.SelectedItem.Text=="纯文本格式")mail.BodyFormat=MailFormat.Text;elsemail.BodyFormat=MailFormat.Html;mail.Body=TextBox4.Text;SmtpMail.SmtpServer ="smtp.163.com";SmtpMail.Send(mail);Label1.Text="成功"; 菜鸟求助,关于用户登录系统 高分求网上充值的例子? 请教一下浩方对战平台的原理 问题:怎么判断国外IP和国内Ip?还是要用IP数据库,有没有相关的资料给点思路。找了一些IP库感觉不行! 在ASP。NET(C#)中怎么样才能实现发邮件功能? 数据库连接access 如何将二进制转换成字符?? 按钮执行顺序问题。(高手进来!) 100分求一段代码 气死了,csdn,整个下午都打不开? owc11的问题!!!会的给点个步!谢谢!! .NET初学者,哪个大哥能给我说说怎么在vs2003中利用工具箱里的数据控件链接sql server数据库
http://www.c-sharpcorner.com/UploadFile/ivxivx/SMTPPOP3IMAPLibrary12072005012506AM/SMTPPOP3IMAPLibrary.aspx?ArticleID=01a32901-2e50-4849-9c14-8171c4dbbeff
http://www.c-sharpcorner.com/UploadFile/sushmita_kumari/SendingMail101062006054220AM/SendingMail1.aspx?ArticleID=91ece6d8-eaaf-41ab-ac6f-533dc215eacf
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1" );
//basic authentication
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "username" ); //username是你163的用户名字
// 设置smtp服务器登录账号(如您163.com的信箱账号)password为你163邮箱的密码 当然你有自己的邮件服务器 可以用你自己邮件服务器分给你的邮件地址的用户名称 用户密码
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "password");
mail.To=TextBox1.Text;
mail.From=TextBox2.Text;//这里要填你的邮箱地址,才能发送成功 比如你的163用户名字为123 那么你在这里要填[email protected]
mail.Subject=TextBox3.Text;
if(Format.SelectedItem.Text=="纯文本格式")
mail.BodyFormat=MailFormat.Text;
else
mail.BodyFormat=MailFormat.Html;
mail.Body=TextBox4.Text;
SmtpMail.SmtpServer ="smtp.163.com";SmtpMail.Send(mail);
Label1.Text="成功";