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('smulpuru@MULPURU.LOCAL', 'user@mulpuru.local', `
'This is a test', "Email Sent via PowerShell")

Reference

system.net.mail.smtpclient

One thought on “Send Email using Powershell

  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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s