Send Email using Powershell

########################################################################### # # NAME: Send-Email # # AUTHOR: SivaMulpuru # # COMMENT: Email using PowerShell # # VERSION HISTORY: # 1.0 12/6/2011 – Initial release # ########################################################################### $smtp = New-Object System.Net.Mail.SMTPClient –ArgumentList 10.20.30.25 $smtp.Send(‘[email protected]’, ‘[email protected]’, ` ‘This is a test’, “Email Sent via PowerShell”) Reference system.net.mail.smtpclient

WordPress Appliance - Powered by TurnKey Linux