VB或者c#获取outlook邮件里的内容

yingdediyi 2016-04-12 09:13:23
急求VB或C#代码实现自动接收发来的邮件里的内容,并提取内容里的一些特定格式的数据,急用给200分谢谢
...全文
184 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
人生导师 2016-04-13
  • 打赏
  • 举报
回复
Justin-Liu 2016-04-13
  • 打赏
  • 举报
回复
首先是获取邮件内容,网上找个读取的例子就行 特定格式需要自己提取
yingdediyi 2016-04-13
  • 打赏
  • 举报
回复
这个发送邮件的资料吧,不过还是要谢谢你
秋的红果实 2016-04-12
  • 打赏
  • 举报
回复
帮你找的资料https://support.microsoft.com/en-us/kb/819398
Chapter 1: An Introduction to Outlook 2007 Programming 1 Setting Up Outlook VBA 1 Setting Up Macro Security 2 Creating a Code-Signing Certificate 3 Reviewing the VBA Editor Interface and Options 4 Understanding Outlook 5 Outlook Profiles and Data Store 6 Outlook Sessions and Data Stores 6 Outlook Folders 6 Outlook Items 8 Outlook Data Storage 8 Accessing Data Stores Using NameSpace 9 Accessing Data with Tables 9 Outlook Data Display 10 Summary 11 Chapter 2: What’s New in Outlook 2007 13 The Unified Object Model 14 The PropertyAccessor 14 Stores and Storage Items 24 User Interface Objects 26 Accounts 28 Performance Improvements 30 Working with Tables Instead of Items 30 Filtering Tables 31 Table Default Columns 33 Table Limitations 33 Security 34 Trusted Code 35 Untrusted Code 35 The Importance of Using DASL 35 DASL Namespaces 36 Using DASL and JET Syntax 36 Summary 38 Chapter 3: Outlook Development 39 The Application Object 39 New Methods, Properties, and Events 44 Other Important Collections, Methods, Properties, and Events 48 The NameSpace Object 53 Exchange 53 Categories 54 Picking Folders 54 Picking Names 55 Summary 57 Chapter 4: Outlook VBA 59 The Outlook VBA Project 59 The Project File 59 ThisOutlookSession 60 Macros and VBA Procedures 60 Macro Security 60 Security Levels 61 Signed Macro Code 61 Class Modules 61 ThisOutlookSession 62 User Classes 62 Code Modules 63 Office UserForms 64 Creating the Macro User Interface 64 Working with Outlook Events 68 Application Events 69 Folder Events 77 User Events 80 Wrapper Classes and Collections 81 Macro Projects 88 Custom Rules 89 Additional Macros 100 Running and Distributing Macros 108 Running Macros 108 Distributing the VBA Project 109 Distributing Individual Macros 110 Summary 110 Chapter 5: Outlook Forms 111 Working with Standard Forms 111 Forms Libraries 112 Published Forms 113 Form Customization 113 Advantages and Disadvantages of Custom Forms 114 Back to the Past: the Forms Development Environment 116 Using the Field Chooser 118 Using the Control Toolbox 119 Using the Code Window 120 Prototyping Forms Code in VBA 122 Simulating the Form Environment in VBA 123 Developing and Debugging Using VBA 124 Custom Form Walkthrough 124 Creating, Publishing, and Running a Form 125 Where to Publish Forms 129 Publishing Forms Using Code 129 Testing Code for the Form 132 Forms Management 136 Form Behavior 138 Trusted Forms 138 Active X Controls 138 Script in Forms 139 Form Regions 139 Form Region Locations, Properties, and Registry Settings 140 Form Region Walkthrough 141 Summary 145 Chapter 6: COM Addins 147 Managed or Unmanaged Code? 147 IDTExtensibility2 and Trusted COM Addins 148 Version Differences 149 VB.NET Addin Implementations 149 C# Addin Implementations 150 Addin Templates 151 Explorer and Inspector Event Handlers 152 Setting Up Explorer and Inspector Event Handlers 152 The OnDisconnection Catch-22 Bug 155 Explorer and Inspector Wrappers 164 Template Utility Code 179 VB.NET Utility Code 180 C# Utility Code 182 Displaying Outlook Property Pages 185 Displaying Property Pages with VB.NET 185 Displaying Property Pages with C# 186 Communicating with a COM Addin 188 VB.NET 188 Testing Addin Communications 189 C# 190 VSTO with VB.NET 191 VSTO with C# 194 Summary 196 Chapter 7: COM Addins and the Outlook User Interface 197 Working with Menus and Toolbars 197 Menus and Toolbars in Explorers 198 VB.NET 199 C# 206 VSTO Interface Handlers 213 VB.NET 213 C# 214 AxHost 216 VB.NET 216 C# 216 Working with the Ribbon 217 Ribbon XML 218 Ribbon Callbacks 224 Custom Task Panes 234 Creating Custom Task Panes 235 Working with Custom Task Panes 239 Form Regions 240 Creating Custom Form Regions 242 Working with Custom Form Regions 244 Custom Views 248 Types of Custom Views 248 Creating Custom Views 248 Filtering and Formatting Custom Views 249 View XML 250 Summary 251 Chapter 8: Interfacing Outlook with Other Applications 253 Microsoft Word 254 Microsoft Excel 257 Microsoft Access 264 ADO 265 Access DAO 267 DAO DBEngine 268 Web Browser 269 Browser Control Form 269 Summary 272 Chapter 9: Real-World Outlook Programming 275 Supporting Multiple Versions of Outlook 275 Coding for Compatibility 276 Ribbon Considerations and Workarounds 277 Addin Deployment 279 Unmanaged Code Addins 279 Managed Code Addins 280 Outlook Programming Limitations 282 Outlook 2007 282 Outlook 2003 and Earlier 283 Things We Still Don’t Have in Outlook 2007 287 Using Alternate APIs 288 CDO 288 Redemption 289 Summary 303 Chapter 10: Task Management System 305 Task Management System Features 305 The Connect Class 307 The VB Connect Class 307 The C# Connect Class 319 C# MyAxHost 335 VB Globals 337 VB OutExpl 337 C# OutExpl 338 VB ExplWrap 340 C# ExplWrap 341 VB OutInsp 344 C# OutInsp 345 VB InspWrap 347 C# InspWrap 353 VB TaskPane 362 C# TaskPane 366 VB Ribbon XML 372 C# Ribbon XML 373 Summary 373 Appendix A: Outlook 2007 Object Model Summary 375 Appendix B: Troubleshooting Problems and Support 425 Index 439
Chapter 1: An Introduction to Outlook 2007 Programming 1 Setting Up Outlook VBA 1 Setting Up Macro Security 2 Creating a Code-Signing Certificate 3 Reviewing the VBA Editor Interface and Options 4 Understanding Outlook 5 Outlook Profiles and Data Store 6 Outlook Sessions and Data Stores 6 Outlook Folders 6 Outlook Items 8 Outlook Data Storage 8 Accessing Data Stores Using NameSpace 9 Accessing Data with Tables 9 Outlook Data Display 10 Summary 11 Chapter 2: What’s New in Outlook 2007 13 The Unified Object Model 14 The PropertyAccessor 14 Stores and Storage Items 24 User Interface Objects 26 Accounts 28 Performance Improvements 30 Working with Tables Instead of Items 30 Filtering Tables 31 Table Default Columns 33 Table Limitations 33 Security 34 Trusted Code 35 Untrusted Code 35 The Importance of Using DASL 35 DASL Namespaces 36 Using DASL and JET Syntax 36 Summary 38 Chapter 3: Outlook Development 39 The Application Object 39 New Methods, Properties, and Events 44 Other Important Collections, Methods, Properties, and Events 48 The NameSpace Object 53 Exchange 53 Categories 54 Picking Folders 54 Picking Names 55 Summary 57 Chapter 4: Outlook VBA 59 The Outlook VBA Project 59 The Project File 59 ThisOutlookSession 60 Macros and VBA Procedures 60 Macro Security 60 Security Levels 61 Signed Macro Code 61 Class Modules 61 ThisOutlookSession 62 User Classes 62 Code Modules 63 Office UserForms 64 Creating the Macro User Interface 64 Working with Outlook Events 68 Application Events 69 Folder Events 77 User Events 80 Wrapper Classes and Collections 81 Macro Projects 88 Custom Rules 89 Additional Macros 100 Running and Distributing Macros 108 Running Macros 108 Distributing the VBA Project 109 Distributing Individual Macros 110 Summary 110 Chapter 5: Outlook Forms 111 Working with Standard Forms 111 Forms Libraries 112 Published Forms 113 Form Customization 113 Advantages and Disadvantages of Custom Forms 114 Back to the Past: the Forms Development Environment 116 Using the Field Chooser 118 Using the Control Toolbox 119 Using the Code Window 120 Prototyping Forms Code in VBA 122 Simulating the Form Environment in VBA 123 Developing and Debugging Using VBA 124 Custom Form Walkthrough 124 Creating, Publishing, and Running a Form 125 Where to Publish Forms 129 Publishing Forms Using Code 129 Testing Code for the Form 132 Forms Management 136 Form Behavior 138 Trusted Forms 138 Active X Controls 138 Script in Forms 139 Form Regions 139 Form Region Locations, Properties, and Registry Settings 140 Form Region Walkthrough 141 Summary 145 Chapter 6: COM Addins 147 Managed or Unmanaged Code? 147 IDTExtensibility2 and Trusted COM Addins 148 Version Differences 149 VB.NET Addin Implementations 149 C# Addin Implementations 150 Addin Templates 151 Explorer and Inspector Event Handlers 152 Setting Up Explorer and Inspector Event Handlers 152 The OnDisconnection Catch-22 Bug 155 Explorer and Inspector Wrappers 164 Template Utility Code 179 VB.NET Utility Code 180 C# Utility Code 182 Displaying Outlook Property Pages 185 Displaying Property Pages with VB.NET 185 Displaying Property Pages with C# 186 Communicating with a COM Addin 188 VB.NET 188 Testing Addin Communications 189 C# 190 VSTO with VB.NET 191 VSTO with C# 194 Summary 196 Chapter 7: COM Addins and the Outlook User Interface 197 Working with Menus and Toolbars 197 Menus and Toolbars in Explorers 198 VB.NET 199 C# 206 VSTO Interface Handlers 213 VB.NET 213 C# 214 AxHost 216 VB.NET 216 C# 216 Working with the Ribbon 217 Ribbon XML 218 Ribbon Callbacks 224 Custom Task Panes 234 Creating Custom Task Panes 235 Working with Custom Task Panes 239 Form Regions 240 Creating Custom Form Regions 242 Working with Custom Form Regions 244 Custom Views 248 Types of Custom Views 248 Creating Custom Views 248 Filtering and Formatting Custom Views 249 View XML 250 Summary 251 Chapter 8: Interfacing Outlook with Other Applications 253 Microsoft Word 254 Microsoft Excel 257 Microsoft Access 264 ADO 265 Access DAO 267 DAO DBEngine 268 Web Browser 269 Browser Control Form 269 Summary 272 Chapter 9: Real-World Outlook Programming 275 Supporting Multiple Versions of Outlook 275 Coding for Compatibility 276 Ribbon Considerations and Workarounds 277 Addin Deployment 279 Unmanaged Code Addins 279 Managed Code Addins 280 Outlook Programming Limitations 282 Outlook 2007 282 Outlook 2003 and Earlier 283 Things We Still Don’t Have in Outlook 2007 287 Using Alternate APIs 288 CDO 288 Redemption 289 Summary 303 Chapter 10: Task Management System 305 Task Management System Features 305 The Connect Class 307 The VB Connect Class 307 The C# Connect Class 319 C# MyAxHost 335 VB Globals 337 VB OutExpl 337 C# OutExpl 338 VB ExplWrap 340 C# ExplWrap 341 VB OutInsp 344 C# OutInsp 345 VB InspWrap 347 C# InspWrap 353 VB TaskPane 362 C# TaskPane 366 VB Ribbon XML 372 C# Ribbon XML 373 Summary 373 Appendix A: Outlook 2007 Object Model Summary 375 Appendix B: Troubleshooting Problems and Support 425 Index 439

62,025

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧