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

推荐订阅源

freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
H
Help Net Security
云风的 BLOG
云风的 BLOG
Apple Machine Learning Research
Apple Machine Learning Research
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
D
Docker
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Blog — PlanetScale
Blog — PlanetScale
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
GbyAI
GbyAI
博客园 - Franky
B
Blog RSS Feed
Stack Overflow Blog
Stack Overflow Blog
L
LangChain Blog
量子位
V
Visual Studio Blog
Y
Y Combinator Blog
小众软件
小众软件
N
Netflix TechBlog - Medium
博客园 - 三生石上(FineUI控件)
Microsoft Security Blog
Microsoft Security 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行开始的东西对我来说还是新知识