Outlook.Application
zoexy 2003-04-22 08:34:05 為何下列程式會出現錯誤訊息─BC30002: 型別 'Outlook.Application' 未定義?請問有哪一位先進可以指點?
<Script language="vb" runat="server">
Sub btnSend_Click(sender as object,e as eventargs)
Dim outObj As New Outlook.Application()
Dim Item As Outlook.MailItemClass
Item = outObj.CreateItem(0)
Item.To = "lihonggen0@163.com "
Item.Subject = "hello"
Item.Body = "hell"
Item.Attachments.Add("C:\abc.txt")
Item.Send()
End Sub
</Script>
<html>
<body>
<form runat="server">
<asp:button id="btnSend" runat="server" text="Send" onClick="btnSend_Clcik"/>
</form>
</body>
</html>