I have created a python script where I search the inbox for a mail with a specific subject.
As soon as the mail is found , my script reads the body, extracts the information and uses it to create an output response table and send mail to the sender with the response.
This entire process is on demand and I do not want to run my script 24x7 to keep on reading the inbox and check if any email with the subject has arrived.
Are there ways through which I can create a trigger so that whenever I receive an email with that subject in my inbox, the python script gets executed and does all the external work as per the code.
What are the different solutions that can be implemented to achieve the desired results. Thanks in advance.
Which version of Outlook are you using? Office 365 Outlook have built in "Trigger" & "Event" function
I don't use Outlook so I don't know how it would call your script, but you could attach to "When new email arrive" trigger.