E-Mails versenden mit Powershell 2

In Version 2 enthält die Powershell ein Commandlet zum einfachen Versenden von E-Mails. Hier ein Beispiel:

send-mailmessage -From admin@localhost.xyz 
-To user@someotherdomain.com 
-Subject "Hallo Welt" 
-Body "Testmail von Uwe" 
-Smtpserver smtpserver.somedomain.com

Uwe

Uwe Ziegenhagen likes LaTeX and Python, sometimes even combined. Do you like my content and would like to thank me for it? Consider making a small donation to my local fablab, the Dingfabrik Köln. Details on how to donate can be found here Spenden für die Dingfabrik.

More Posts - Website