$msg.Body = "<font color=red>VMware HealthCheck vCenter2</font>"
Open in new window
$emailattachment = "C:\scripts\VMware\HealthCheckvCenter2.xlsx"
$smtpServer = "ux3t"
$mailfrom = "VMware Healtcheck <VMWareTech>"
$mailto = "Me"
if ($enablemail -match "yes")
$msg = new-object Net.Mail.MailMessage
$att1 = new-object Net.Mail.Attachment($emailattachment)
$smtp = new-object Net.Mail.SmtpClient($smtpServer)
$msg.From = $mailfrom
$msg.Subject = "VMware Health vCenter2"
$msg.Body = "VMware HealthCheck vCenter2"
$msg.IsBodyHTML = $true
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.