As Technet Gallery is retiring so moving the code to Git Hub. (click below github download link for this script)
Sharing a sweet code to send HTML email via powershell.
Attached is a very simple method for sending the html email.
zip file contains script & html file (you can edit in MS word according to your requirment).
Most of the parameters that are required to send email are included, you can use what ever you require.
Extract the zip file & Check the sample.
If you search on Internet, you will find complex method in which scripters have used html code inside the script.
I have used a very simple method by creating the word file & saving it as html.
Script also sends attachment, if you want to send attachment then change the path accordingly in variables.(# Hash the things that you dont require in your script email)
Thanks for reading …