I am having the script to send outlook email through python libaray win32/Automagica . The email have successfully send if i run the script in normal way(using IDE) when i try to run the same script from jenkins ,it throws “Exception: Could not launch Outlook, do you have Microsoft Office installed on Windows?”
outlook = Outlook(account_name=accountName) File “C:Python39libsite-packagesautomagicautilities.py”, line 41, in wrapper return func(*args, **kwargs) File “C:Python39libsite-packagesautomagicaactivities.py”, line 4186, in init self.app = self._launch() File “C:Python39libsite-packagesautomagicaactivities.py”, line 4202, in _launch raise Exception( Exception: Could not launch Outlook, do you have Microsoft Office installed on Windows?
Advertisement
Answer
Yeah ..Now it is working ..it is because of Jenkins running under Admin rights and Outlook is in User Rights…after i start to run Jenkins on User rights(not Admin)it is able to send email through Outlook