Send HTML Email and attachment Powershell

As Technet Gallery is retiring so moving the code to Git Hub. (click below github download link for this script)

Send HTML Email and attachment Powershell

 

Hi Readers,

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 …

Tech Wizard

https://techwizard.cloud

https://www.syscloudpro.com/

PowerShell Cheat Book

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s