MailboxAutoReplyConfiguration

Glenn Maxwell 10,781 Reputation points
2023-07-18T20:46:18.2433333+00:00

Hi All

i have unified group, i want to set the Autoreply to that, if i use the below syntax it will work but i have 10 lines in the below format. When i set Autoreply i want to get the response in 10 lines not in one line. how can i achieve it.

Set-MailboxAutoReplyConfiguration -Identity ug1@contoso.com -AutoReplyState Enabled -InternalMessage "msg" -ExternalMessage "msg"

ap

Microsoft Exchange Online
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,388 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,503 questions
Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
1,999 questions
Excel Management
Excel Management
Excel: A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.Management: The act or process of organizing, handling, directing or controlling something.
1,689 questions
0 comments No comments
{count} votes

Accepted answer
  1. Kael Yao-MSFT 37,676 Reputation points Microsoft Vendor
    2023-07-19T05:30:03.58+00:00

    Hi @Glenn Maxwell

    Do you mean the auto reply part (msg) should be 10 lines instead of one line?

    If yes, you can use HTML codes like <br> to insert a link break.

    For example:

    $msg = "<html><p>Thank you for you email.<br>If you still need aaitional assistance:<br>.XXXXXXXX<br>.XXXXXXXXX<br>.XXXXXXXXX<br>.XXXXXXXXX<br></p></html>"
    
    Set-MailboxAutoReplyConfiguration -Identity ug1@contoso.com -AutoReplyState Enabled -InternalMessage $msg -ExternalMessage $msg
    

    Check the OOF in Exchange Admin Center:

    02


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Glenn Maxwell 10,781 Reputation points
    2023-07-19T20:50:19.5566667+00:00

    Thanks, it is working. in the below message, helpdesk should an hyperlink how can i set hyperlink for helpdesk

    $msg = "<html><p>Thank you for you email.<br>If you still need additional assistance: please contact please contact helpdesk team<br></p></html>"