Sign in to Outlook on the web.
At the top of the page, select Settings > View all Outlook settings > Mail > Automatic replies.
Select the Turn on automatic replies toggle.
Select the Send replies only during a time period check box, and then enter a start and end time.
If you don't set a time period, your automatic reply remains on until you turn it off by selecting the Automatic replies on toggle.
Select the check box for any of the following options that you're interested in:
Block my calendar for this period
Automatically decline new invitations for events that occur during this period
Decline and cancel my meetings during this period
In the box at the bottom of the window, type a message to send to people during the time you're away.
If you like, you can use the formatting options at the top of the box to change the font and color of the text or customize your message in other ways.
If you want senders outside your organization to get automatic replies, select the check box for Send replies outside your organization.
When you're done, select Save at the top of the window.
If you didn't set a time period for automatic replies (step 4 earlier), you'll need to turn them off manually. To turn off automatic replies, sign in to Outlook on the web, choose Settings > View full settings > Mail > Automatic replies and then select the Automatic replies on toggle.