且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

创建新的Outlook电子邮件

更新时间:2023-11-30 08:30:34

有两个可能的原因:

1)托管您网站的计算机上根本没有安装Outlook。

2)服务器负载太高了,它们都崩溃了: http://blogs.msdn。 com / b / adioltean / archive / 2005/06/24 / 432519.aspx [ ^ ]



第一种方法很容易解决:安装Outlook on你的网络服务器。

第二个更复杂,但链接包含建议。


Hi Everyone,

iam trying to create new outlook email but i have iis permission problem and i tryied every thing i know please help this is the code :

Dim OutlookMessage As Outlook.MailItem
       Dim AppOutlook As New Outlook.Application
       Try

           OutlookMessage = AppOutlook.CreateItem(Outlook.OlItemType.olMailItem)
           ' Dim Recipents As Outlook.Recipients = OutlookMessage.Recipients
           'Recipents.Add("myemail@hotmail.com")
           OutlookMessage.To = "waleedb@aylait.com"
           OutlookMessage.Subject = "Sending through Outlook"
           OutlookMessage.HTMLBody = StrReport
           OutlookMessage.BodyFormat = Outlook.OlBodyFormat.olFormatHTML
           OutlookMessage.Display()
       Catch ex As Exception
           MsgBox("Mail could not be sent") 'if you dont want this message, simply delete this line
       Finally
           OutlookMessage = Nothing
           AppOutlook = Nothing
       End Try


and i got:

Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)).

Thank you

There are two reasons that are likely:
1) Outlook is not installed at all on the computer hosting your website.
2) The server load is too high, and it's all falling apart: http://blogs.msdn.com/b/adioltean/archive/2005/06/24/432519.aspx[^]

The first is sort-of simple to fix: install Outlook on your web server.
The second is more complex, but the link contains suggestions.