powershell to send html and hyperlinks to users


my current script sends out plain text users:

$body = "test here`n`n"
$body += "and continues here."

i need include html , urls now. giving users redirects internal site , highlight text in red.

its 10 sentences long.

thank you

$body = get-content "d:\body.txt" | out-string

send-mailmessage -to $emailto -from $emailfrom -subject $subject -bodyashtml $body -smtpserver $smtpserver


Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

2008 Windows Deployment Server Properties Error

Can no longer user MS Update - Files required to use Microsoft Update are no longer registered

How do a find data in one file, search for it in another file and if not found, write a custom message to another file