danaluContributor6 years agoPython - Send Email by OutLook 2010 failed when outlook is closed Hi , i want to use below code to send report by out look after test done. def send_to_mail(test_result): fmt = '%Y-%m-%d' report_time = time.strftime(fmt) outlook = Sys.OleObjec...Show More
danaluContributor to AlexKaras6 years agoHi Alex, fail at the last line when Mail.Send(), and interesting thing is, if i debug the code, it can send out successfully, only fail when i run the code.
Related ContentReading emails from SMTP server outlookWhy Isn't my Code Working? Opening Outlook in Python ScriptReading Outlook Email Body TextTestcomplete 14 with Outlook 2016problem with TestComplete and Outlook 2010
Recent DiscussionsBest way to handle Azure login using TestCompleteName Mapping IssueUnbinding a project suite from source controlSolvedJScript Runtime Error "Object doesn't support this property or method"Unable to access Navigation menu component sub menus