Adding HTML code into powershell array -
i running several different types of validations on deployment process. each validation i'd add html code array. @ end of script i'd take entire array of code , email out.
the code have send email following
$sendmessage = @{ subject = "problem: web config blanks" body = " <p>the deployment validation script has found @ least 1 problem</p> <ul> <li> there " + $errorwcblanksct + " web config values blank </ul>" = "from@company.com" = "to@company.com" smtpserver = "0.0.0.0" } send-mailmessage @sendmessagewcblanksct -bodyashtml write-host "web config has been parsed , emailed"
obviously 1 validation checks blank values in web.configs. if add in validation total file count example, how have additional <li>
line, if file count script defines "wrong"?
Comments
Post a Comment