1

Is there a way to create a rule that sets an auto reply message when you are signed out of Outlook? I.E. we need to daily set an out of office message at the end of the day. Instead of having to set it daily, is there a way to set a rule that applies an auto reply when Outlook is closed?

Thank you

Dan
  • 11
  • 1
  • 2

2 Answers2

1

If you close Outlook, what program will send the auto reply message? You would need some other email program to check your email and send automatic replies. If you leave at the same time every day you could schedule another email program to start at a specified time each day through the Windows Task Scheduler. You could then stop the program manually when you arrive the next day or you could schedule a script to kill the process for the other mail program at a specified time each morning.

Or you could create a batch file that runs a tasklist /fi "imagename eq outlook.exe" command periodically that will start the other email program if it doesn't see Outlook.exe running and a taskkill /f /fi "imagename eq otherprogram.exe command to kill the other mail program when it finds Outlook.exe in the tasklist. But you aren't going to be able to set an Outlook rule to send automatic replies when Outlook isn't running to process the rule.

If you are using a Microsoft Exchange server with Outlook, you can specify automatic rules to be run by the Exchange server, e.g., if you have a webmail interface to the exchange server through Outlook Web App, then you can configure an auto-reply to be sent by the Exchange server. However, that only gives you the capability to configure automatic replies from a start date and time to an end date and time. It doesn't provide the capability to specify that the automatic replies start at a specific time each day and stop at a specific time the next day.

moonpoint
  • 5,268
  • 2
  • 21
  • 22
0

You can add a Private Sub Application_Quit() to your ThisOutlookSession. Then use some modified form of the code at https://stackoverflow.com/q/35796651/321973 to create the out of office message on closing Outlook. Finally, you can also use Application_Startup() to automatically disable that automated reply on starting Outlook.


Note however that Outlook crashing or other circumstances make this a not 100% reliable solution. Maybe your corporation should question the point of this policy in general, since it is globally accepted that there are some kind of limited business hours outside of which no immediate response can be expected. In fact, even during business hours expecting near-immediate responses is usually not acceptable, unless this is specifically an emergency email contact...