简体   繁体   中英

Python Win32 Outlook.Application failure

I am using win32com.client to manipulate emails and attachments. My jobs run just fine when I am running them interactively. However when I schedule the jobs in Windows Task Scheduler and try to run under the option 'Run whether the user is logged on not', because this is supposed to run without any intervention, it does not work but times out waiting to open a session in outlook. If I select the option 'Run only when the user is logged on' and run the job it runs without a flaw. How do I get around this issue?

Thanks VR

Outlook(和其他Office应用程序)并非旨在在计划任务或Windows服务的上下文中运行: https : //support.microsoft.com/zh-cn/help/257757/considerations-for-server-side-automation -of办公室

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM