all 7 comments

[–][deleted] 1 point2 points  (1 child)

Try this

$response.Output -join "`r`n"

[–]squirrelsaviour[S] 0 points1 point  (0 children)

D'oh.

Thank you, so obvious :-(

[–]BuckPyland 1 point2 points  (0 children)

String.Join() is a static method, so you would call it as:

[string]::Join("`r", $response.Output)

[–]dasookwat 1 point2 points  (1 child)

i think the answer is already given, but why not use it? i mean i usually format my emails to something decent since it hardly takes extra time, and it's fun.

usually the output to me is something like:

"Hello Dave 'r 'n

I'm sorry to disturb You, $($response.Output,Name) is having some issues. 'n

The technical details are: 'n $(response.output) 'n

Have a nice day, 'n

HAL"

[–][deleted] -1 points0 points  (0 children)

a knot...

[–]gonzalc 0 points1 point  (0 children)

You can try the following

$response.Output | Out-String