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

推荐订阅源

aimingoo的专栏
aimingoo的专栏
V
V2EX
G
Google Developers Blog
F
Full Disclosure
Martin Fowler
Martin Fowler
宝玉的分享
宝玉的分享
H
Hacker News: Front Page
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
NISL@THU
NISL@THU
G
GRAHAM CLULEY
V
Vulnerabilities – Threatpost
Hacker News - Newest:
Hacker News - Newest: "LLM"
A
About on SuperTechFans
The Cloudflare Blog
C
Cisco Blogs
D
DataBreaches.Net
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Vercel News
Vercel News
P
Privacy International News Feed
Microsoft Security Blog
Microsoft Security Blog
Help Net Security
Help Net Security
Recorded Future
Recorded Future
PCI Perspectives
PCI Perspectives
S
Schneier on Security
AI
AI
N
News | PayPal Newsroom
雷峰网
雷峰网
C
Cyber Attacks, Cyber Crime and Cyber Security
P
Proofpoint News Feed
The Last Watchdog
The Last Watchdog
L
LINUX DO - 最新话题
Hugging Face - Blog
Hugging Face - Blog
Apple Machine Learning Research
Apple Machine Learning Research
Schneier on Security
Schneier on Security
S
Securelist
云风的 BLOG
云风的 BLOG
Stack Overflow Blog
Stack Overflow Blog
博客园_首页
AWS News Blog
AWS News Blog
TaoSecurity Blog
TaoSecurity Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Recent Commits to openclaw:main
Recent Commits to openclaw:main
博客园 - 三生石上(FineUI控件)
C
CXSECURITY Database RSS Feed - CXSecurity.com
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Cloudbric
Cloudbric
C
Cybersecurity and Infrastructure Security Agency CISA
Project Zero
Project Zero
C
Check Point Blog
S
Security Affairs

博客园 - 大尾巴狼

列相等与不等 (转载)一个项目经理的一些个人体会 为什么有时不能正确定位到异常的发生位置? 数据库对象搜索器 XML遭遇缺省Namespace - 大尾巴狼 - 博客园 下载DataGrid内容,作为Excel可打开的文件 迁移用户的Documents and Settings 利用自定义属性,定义枚举值的详细文本,完美解决 - 大尾巴狼 - 博客园 利用自定义属性,定义枚举值的详细文本 多态相关的关键字的总结 住房商业贷款计算器 关于设置IIS目录的属性问题 只返回DB架构信息 用script让IE窗口最大化 - 大尾巴狼 - 博客园 可在多线程下TextBox中显示信息,和控制滚动的一个函数 DNN文件夹说明 脚本生成Guid - 大尾巴狼 - 博客园 DNN页面呈现过程 获得一个指定星期的起始和终止日期 - 大尾巴狼 - 博客园
打开Outlook发邮件界面,发邮件 - 大尾巴狼 - 博客园
大尾巴狼 · 2006-09-18 · via 博客园 - 大尾巴狼

        private void SendMailAttach(string to,string bcc,string subject,string body,bool html,string FileNameforEMail)
        
{
            Outlook._Application oApp 
= new Outlook.Application();      

            Outlook.NameSpace oNameSpace
= oApp.GetNamespace("MAPI");              

            
try
            
{
                oNameSpace.Logon(Missing.Value, Missing.Value,
true,true);  

                Outlook.MAPIFolder oOutboxFolder 
= oNameSpace.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderSentMail);

                Outlook.ApplicationClass a 
= new Outlook.ApplicationClass();

                Outlook.MailItemClass tt;

                tt
=(Outlook.MailItemClass)a.CreateItem(OlItemType.olMailItem);               

                tt.To
=to;
                tt.CC 
= bcc;

                tt.Subject
=subject;

                
if(html)
                
{
                    tt.HTMLBody
=body;
                }

                
else
                
{
                    tt.Body
=body;    
                }


                tt.SaveSentMessageFolder
=oOutboxFolder;

                tt.Attachments.Add(FileNameforEMail,Missing.Value,Missing.Value,Missing.Value);

                tt.Display(
null);                
            }

            
finally
            
{
                oNameSpace.Logoff();

            }


        }