惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

小众软件
小众软件
博客园 - Franky
罗磊的独立博客
G
Google Developers Blog
The GitHub Blog
The GitHub Blog
P
Proofpoint News Feed
Recent Announcements
Recent Announcements
V
V2EX
F
Fortinet All Blogs
阮一峰的网络日志
阮一峰的网络日志
Blog — PlanetScale
Blog — PlanetScale
月光博客
月光博客
U
Unit 42
GbyAI
GbyAI
A
About on SuperTechFans
WordPress大学
WordPress大学
Engineering at Meta
Engineering at Meta
雷峰网
雷峰网
Microsoft Azure Blog
Microsoft Azure Blog
Martin Fowler
Martin Fowler
D
DataBreaches.Net
The Cloudflare Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
MongoDB | Blog
MongoDB | Blog

博客园 - 弦月摘星

[转载]js技巧收集(200多个) - 弦月摘星 - 博客园 sql 违反了 PRIMARY KEY 约束,不能在对象 中插入重复键 生活着,流浪着 毕业设计 熊猫病毒专杀工具 烦,好乱的事情...... 需要不断的给自己充电 CuteEditor使用手记 常用正则表达式 - 弦月摘星 - 博客园 不要一生靠技术生存 (转) 写在实习前 工作了,加油 沉着,冷静(小记第一次招聘会) 刷新验证码 - 弦月摘星 - 博客园 两首歌 在家 全国各地电台在线收听大全(转) 六级来了,janker,加油 触发器入门
ASP.NET 发邮件(转) - 弦月摘星 - 博客园
弦月摘星 · 2006-06-01 · via 博客园 - 弦月摘星

 1Dim mail As  New MailMessage()
 2      mail.To         = mailTo.Text
 3      mail.From       = "gghouse@163.com"
 4      mail.Subject    = mailSubject.Text
 5      mail.BodyFormat = MailFormat.Text 
 6      mail.Body       = mailBody.Text
 7   mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate""1"
 8   mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername""xxx@163.com"
 9   mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword""xxx的密码")
10
11      On Error Resume Next
12SmtpMail.SmtpServer = "smtp.163.com"
13SmtpMail.Send( mail )
14
15

之前有做过邮件发送的,不过下面第7行开始的东西对我来说还是新知识