解决该问题的大虾,能不能留下解决办法 我市在vs2003.net下,总是提示参数类型不对,源码如下: Outlook.Application OutlookApp = new Outlook.ApplicationClass(); AddInExpress.OutlookSecurityManager tmp = new AddInExpress.OutlookSecurityManagerClass(); //object objTmp = objOutlook; tmp.ConnectTo(OutlookApp.CreateObject("test")); tmp.DisableCDOWarnings = true; tmp.DisableOOMWarnings = true; tmp.DisableSMAPIWarnings = true; Outlook.MailItemClass item ; item = (Outlook.MailItemClass)OutlookApp.CreateItem(0); item.To = lstEmails.ToString(); item.Subject = "hello" + i.ToString(); 提示 item.Body = "hello"; //item.AttachmentAdd("C:\abc.txt"); try { item.Send(); } catch (System.Exception ee) { Response.Write(ee.ToString()); } finally { Response.Write("126!"); } 提示tmp.ConnectTo参数类型不匹配,不知道怎么回事?帮忙以下! |