Quantcast
Channel: Exchange Server 2013 - Mail Flow and Secure Messaging forum
Viewing all articles
Browse latest Browse all 3660

Set-Mailboxautoreplyconfiguration LINE BREAK issue

$
0
0

Hi all, I'm trying to set up an auto reply message for a mailbox, but I'm unable to include the break lines.

I tryed several methods:


1. just pasting the text:

[PS] C:\Windows\system32>Set-MailboxAutoReplyConfiguration -identity testexchange -ExternalMessage "This is an auto reply message.
>> this is the second line"
>>

i receive a mail like this:

This is an auto reply message.this is the second line


2. with a variable in power shell and adding exchange 2013 snapin:

PS C:\> $reply = "first line
>> second line"
>>
PS C:\> Add-PSSnapin Microsoft-Exchange.Management.Powershell.snapin
PS C:\> Set-MailboxAutoReplyConfiguration -Identity testexchange -ExternalMessage $reply

Again, i receive a mail like: 

first linesecond line

3. I tried fetching the text from a file:

[PS] C:\>$reply=Get-Content reply.txt

[PS] C:\>Set-MailboxAutoReplyConfiguration -Identity testexchange -ExternalMessage $reply

4. I also tried with a powershell script:
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.snapin

$x = @"

this is the autoreply
second line
third line

"@

set-mailboxautoreplyconfiguration -identity testexchange -externalmessage $x

again, i receive a mail like: this is the autoreplysecond linethird line

Thank you all,



Viewing all articles
Browse latest Browse all 3660

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>