如题。
从outlook2003中拖拽email,让程序获取email的from,to,subject,send.并获取文件的二进制内容。保存为msg文件。
谢谢了
从outlook2003中拖拽email,让程序获取email的from,to,subject,send.并获取文件的二进制内容。保存为msg文件。
谢谢了
解决方案 »
- 怎么样将字符导出到.txt文件?
- 请高手指点,初学ajax,ie提示出错:'Sys.WebForms.PageRequestManagerServerErrorException:...404
- C#中做Flash播放器。报错:未能导入ActiveX控件。
- Excel表格导入问题?十万火急,敬请高手指路
- 求:水晶报表10 简体中文版下载地址.
- 重酬求助——软件制做!
- DataGrid能不能根据结果来合并单元格(webform和winform都想知道)
- 请问如何像资源管理器一样用系统中的默认程序打开特定格式文件
- 这个错误怎么改?
- 怎样设置combox的文本框为只读,并且第一次显示的时候文本框内有内容
- VS2003中,能直接对listview显示的网格线进行编辑吗?
- ADO.NET中的SQL语句查询中,表名和字断名如何用变量表示
我是通过IReaper下载的。这是系列课程的第一讲http://msevents.microsoft.com/CUI/WebCastEventDetails.aspx?EventID=1032328130&EventCategory=3&culture=en-US&CountryCode=US
其他的你自己找找看
{
Outlook.ApplicationClass outlook = new Outlook.ApplicationClass();
Outlook.Explorer myExp = outlook.ActiveExplorer();
Outlook.MailItem myMailItem =null;;
if(myExp!=null&&myExp.Selection!=null&&myExp.Selection.Count>0)
{
try
{
string To ="";
myMailItem =myExp.Selection[1] as Outlook.MailItem;
string SubjectEmail = myMailItem.Subject;
string From = myMailItem.SenderEmailAddress.ToString();
string SendDate= myMailItem.ReceivedTime.ToString();
if(myMailItem.Recipients.Count>0)
for(int count =1;count<=myMailItem.Recipients.Count;count++)
To =myMailItem.Recipients[count].Address.ToString()+";"+To;
string tempEmailFileName =AppDomain.CurrentDomain.BaseDirectory+"temp\\"+System.Guid.NewGuid().ToString().Replace("-","")+".msg";
myMailItem.SaveAs(tempEmailFileName,Outlook.OlSaveAsType.olMSG);
string FullPath =tempEmailFileName;
}
catch{return null;}
}
}