Use PowerShell to Send Email

Q: Can I send an email from PowerShell?

A: Provided you have an available SMTP server, you can easily send email from PowerShell. Use the following simple command:

Send-MailMessage -To '[email protected]' -Body 'test' -Subject 'test subject' -from '[email protected]' -smtpServer ''
TAGS: Windows 8
Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.