Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2562

Sendmailmessage Create line break after body output

$
0
0

I have a powershell script which outputs the html results to the body of an email.

The issue I have is that our application that applies our company disclaimer appears to be populating the disclaimer into the last cell of the html results output.

I want to put a line break or new line into my code so when the email gets sent and processed by the disclaimer application the disclaimer appears on a new line, seperate to output.

Here is the mailmessage parameters part of the script:

$mailMessageParameters = @{
 From = $emailFrom
 To = $emailTo
 Subject = ("XenApp Farm Report - " + (Get-Date).ToString('dddd dd/MM/yyyy'))
 SmtpServer = $smtpServer
  Body = (gc $errorsHTM) | Out-String
 Attachment = $resultsHTM

Thanks!


Viewing all articles
Browse latest Browse all 2562

Trending Articles



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