Ask a Question

Can someone help me fix this ? When i execute all test cases and try to notify result using Outlook

Occasional Contributor

Can someone help me fix this ? When i execute all test cases and try to notify result using Outlook

 i am getting below Error :


Server execution failed, ClassID: {0006F03A-0000-0000-C000-000000000046} 18:11:42 Normal 38.79


this is my code 

def sendEmailReport(emailToList):

outlookObj = Sys.OleObject["Outlook.Application"]
outlookMsg = outlookObj.CreateItem(0)
outlookMsg.To = emailToList
outlookMsg.Subject = emailSubjectLine
outlookMsg.HTMLBody = emailBodyText


Failing at first line ? where am I going wrong 

Champion Level 3



How your code is executed? Do you start it from TestComplete's IDE or unattended via task scheduler, for example?

Can Outlook be started when you are logged in?

Use test log to figure out what exactly line of code is failing and let us know.


  /Alex [Community Champion]
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
SmartBear Alumni (Retired)

Thank you Alex!


Hi@thouhid1! The Community is happy to try solving this, but we need more information from you about the issue.

Sonya Mihaljova
Community and Education Specialist

Frequent Contributor



It seems there is some server authentication error may be and would be difficult to debug.


But my suggestion would be to use the build In SendMail feature from Testcomplete very easy to use and generally send mail directly from messaging server so need to worry about the authentication.


Provided the article just to help you.


Showing results for 
Search instead for 
Did you mean: