Sending an Smtp mail using power shell as been simplified using “Send-MailMessage” Cmdlet
Lets see how to do it !!
Send-MailMessage –From “email@example.com” –To “User1@domain.com”, “User2@careexchange.in” -Subject "Mail using Powershell !!" –Body “Body of my Power shell Email” -Priority High -SMTPserver "Exchange2010 Server FQDN"
Logging into User1 or User2
Received the below email
Mail Generated to User1 and User2 Successfully !