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

Join the Conversation

1 Comment

  1. Hey there, You have performed a great job. I will definitely digg it and in my view suggest to my friends. I’m sure they’ll be benefited from this website.

Leave a comment

Your email address will not be published. Required fields are marked *

WordPress Appliance - Powered by TurnKey Linux