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

推荐订阅源

cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
C
CERT Recently Published Vulnerability Notes
C
Cybersecurity and Infrastructure Security Agency CISA
P
Proofpoint News Feed
Security Latest
Security Latest
P
Privacy International News Feed
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
AI
AI
Cisco Talos Blog
Cisco Talos Blog
K
Kaspersky official blog
S
Secure Thoughts
PCI Perspectives
PCI Perspectives
Simon Willison's Weblog
Simon Willison's Weblog
D
DataBreaches.Net
GbyAI
GbyAI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
大猫的无限游戏
大猫的无限游戏
T
Tailwind CSS Blog
The Cloudflare Blog
阮一峰的网络日志
阮一峰的网络日志
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
罗磊的独立博客
V
Visual Studio Blog
aimingoo的专栏
aimingoo的专栏
H
Hackread – Cybersecurity News, Data Breaches, AI and More
IT之家
IT之家
V
V2EX
Last Week in AI
Last Week in AI
有赞技术团队
有赞技术团队
月光博客
月光博客
酷 壳 – CoolShell
酷 壳 – CoolShell
T
Tenable Blog
T
Threat Research - Cisco Blogs
T
Troy Hunt's Blog
V2EX - 技术
V2EX - 技术
S
Security @ Cisco Blogs
Security Archives - TechRepublic
Security Archives - TechRepublic
Project Zero
Project Zero
The GitHub Blog
The GitHub Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
L
Lohrmann on Cybersecurity
F
Full Disclosure
H
Help Net Security
博客园 - Franky
Stack Overflow Blog
Stack Overflow Blog
N
Netflix TechBlog - Medium
Engineering at Meta
Engineering at Meta
A
Arctic Wolf
O
OpenAI News
S
Securelist

博客园 - 冰封王座(.net)博客

实现qq的自动登录 - 冰封王座(.net)博客 - 博客园 创建带签名的cab包的完整流程 在C#中使用 makecert 创建自签名的证书 对比 javascript url编码 有关 java 与 C#细节不同 - 冰封王座(.net)博客 mysql常用命令 今天你处理异常了么? 防止SQL注入攻击 在DataGrid中进行值映射 - 冰封王座(.net)博客 - 博客园 UML视图使用 想要做个开源 大家谁有创意啊? 程序员每天该做的事 Google SiteMap的作用及协议格式详解[转摘] 取得客户端MAC Java学习之路:不走弯路,就是捷径 开发人员必备网站 Acess 存储与显示图片 css 外层保持固定高度的情况下 能随内层高度自适应变化 新的学习计划(10/8--10/15)
使用 DotnetOpenMail发送带附件的邮件 - 冰封王座(.net)博客 - 博客园
冰封王座(.net)博客 · 2007-01-25 · via 博客园 - 冰封王座(.net)博客

            DotNetOpenMail.EmailMessage email = new DotNetOpenMail.EmailMessage();
            
            email.FromAddress 
= new DotNetOpenMail.EmailAddress("zhifengwu1211@126.com");
            
            DotNetOpenMail.EmailAddressCollection toAddresses 
= new DotNetOpenMail.EmailAddressCollection();
            DotNetOpenMail.EmailAddress toAddress 
= new DotNetOpenMail.EmailAddress("zhifengwu1211@126.com");
            toAddresses.Add(toAddress);
            email.ToAddresses.Add(toAddress);

            email.Subject 
= "this is test";
            DotNetOpenMail.SmtpServer smtpserver 
= new DotNetOpenMail.SmtpServer("192.168.2.129");
            
            StreamReader readfile 
= new StreamReader("d:\\mycert.cer");
            Byte[] fileBytes 
= System.Text.Encoding.Default.GetBytes(readfile.ReadToEnd());
            
            DotNetOpenMail.FileAttachment fileAttachment 
= new DotNetOpenMail.FileAttachment(fileBytes);
            fileAttachment.FileName 
= "mycert.cer";
            email.AddMixedAttachment(fileAttachment);
            

            
bool result=email.Send(smtpserver);
           
            
if (result == true)
                
this.label1.Text = "success";
            
else
                
this.label1.Text = "error";