$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...
-
#How to connect to VMware vCenter Through PowerCLI clear Add-PSSnapin VMware.VimAutomation.Core #above line is mandatory to add so...
-
Set wshShell = wscript.CreateObject("WScript.Shell") do wscript.sleep 100 wshshell.sendkeys "~(enter)" loop s...
No comments:
Post a Comment
Thanks for showing interest in tech-jockey.