email

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 'savdalex01.savilltech.net'
TAGS: Windows 8
Hide comments

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.
Publish