Error when trying send email from QTP
I need help. Iím trying to send email from QTP by following script:
Function SendMailOutlook'(strMailto, Subject, Message, strMailfrom)
Set Outlook = CreateObject ("Outlook.Application")
Set Message = Outlook.CreateItem(olMailItem)
Message.Subject = "hi"
Message.Body = "test"
But on row Set Outlook= CreateObject ("Outlook.Application") I stopped with error <ActiveX component canít create object: Ď”utlook.Applicationí>
What is the problem?
I have QTP 10.0 /Outlook Express 6
Thank you for advance
Re: Error when trying send email from QTP
May be Outlook Express API is different from Outlook API.