$smtpserver = "your-exchange-server" $to = "neerajvayu123@gmail.com" $from = "neerajvayu123@gmail.com" $subject = "First email" $body = "HI $to , " $body += "How are you doing, i am testing email function " send-MailMessage -SmtpServer $smtpserver -To $to -From $from -Subject $subject -Body $body -BodyAsHtml
Welcome to tech-jockey!
This blog is designed to built tech solutions with collaboration of members who believe in sharing.
Guests inputs are most welcome.
Comment, like and share.
You can also help tech-jockey to grow
Please Click here to help.
Team Tech-Jockey !!
Thursday, June 9, 2016
Send email through powershell
Subscribe to:
Post Comments (Atom)
Content of this blog has been moved to GITHUB
Looking at current trends and to make my content more reachable to people, I am moving all the content of my blog https://tech-jockey.blogsp...
-
(gwmi -Namespace root\wmi -Class mpio_disk_info).driveinfo | % {Write-host "Name: $($_.name) Paths: $($_.numberpaths)"}
-
Here is what you need to do: Step 1: Restart your machine. Its always good to go for the ‘when-nothing-works-try-this’ solution Step 2:...
No comments:
Post a Comment
Thanks for showing interest in tech-jockey.