Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 206069

Re: Powershell/PowerCLI Dynamic Email Message Body with Datastores

$
0
0

it's your mail sender which is fucked. I presumed you had a working script bu i bet no. You should take a look look at Send-MailMessage

 

Send-MailMessage -To <yourmail> -Subject <yoursbuject> -Body (ConvertTo-HTML @params) -BodyAsHtml -SmtpServer <Your_SMTP_Server>

 

But ar first you should learn to use PowerShell/PowerCLi bascis in order to understand better your problems, the variable $msg isn't declared or builded anywhere in your script !


Viewing all articles
Browse latest Browse all 206069

Trending Articles



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