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
outlookMsg.Send()
Failing at first line ? where am I going wrong
Hi@thouhid1!
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.
https://support.smartbear.com/testcomplete/docs/reference/program-objects/builtin/sendmail.html