19 C
Dubai
Wednesday, December 25, 2024

How to Send an Smtp Email using Powershell – Send-MailMessage

Sending an Smtp mail using power shell as been simplified using “Send-MailMessage” Cmdlet

Lets see how to do it !!

Send-MailMessage –From "administrator@careexchange.in" –To "User1@domain.com", "User2@careexchange.in" -Subject "Mail using Powershell !!" –Body "Body of my Power shell Email" -Priority High -SMTPserver "Exchange2010 Server FQDN"

image

Logging into User1 or User2

Received the below email

image

Mail Generated to User1 and User2 Successfully !

Satheshwaran Manoharan
Satheshwaran Manoharanhttps://www.azure365pro.com
Award-winning Technology Leader with a wealth of experience running large teams and diversified industry exposure in cloud computing. From shipping lines to rolling stocks.In-depth expertise in driving cloud adoption strategies and modernizing systems to cloud native. Specialized in Microsoft Cloud, DevOps, and Microsoft 365 Stack and conducted numerous successful projects worldwide. Also, Acting as a Technical Advisor for various start-ups.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

× How can I help you?