PS C:\Windows\system32> Send-MailMessage -to "harsh.damania@test.com" -from "user2.d@test.com" -Subject " Test message" -Body " This is a sample msg" -SmtpServer "mail.company.com"
Here
to : The to address
from: The from address
Subject : As required
Body:Anything
The most imp is -SMTPServer where you need to provide smtp servername
Here
to : The to address
from: The from address
Subject : As required
Body:Anything
The most imp is -SMTPServer where you need to provide smtp servername
Comments
Post a Comment