Hi,
I'm trying to add an htm file to an email message as the body but instead I'm getting the results all in black and not properly formatted.
Here is the code:
$msg = new-object Net.Mail.MailMessage
$smtp = new-object Net.Mail.SmtpClient($smtpHost)
$msg.From = $from
$msg.To.Add($Recipient)
$msg.Subject = $Title
$msg.Body = Get-Content $FilePath | Out-String
$msg.IsBodyHTML
$smtp.Send($msg)
Thanks