#Powershell and Send-MailMessage cmdlet

#Exchange2010 – Found this and it’s damm handy and what’s cool is that its a Windows Powershell v2 thing and you don’t need Exchange :-|


Source: http://www.howexchangeworks.com/2009/11/send-emails-easily-using-powershell-v2.html 

-and-

Source: http://technet.microsoft.com/en-us/library/dd347693.aspx

The Send-MailMessage cmdlet sends an e-mail message from within Windows PowerShell.

Send-MailMessage –From Rajith@chakka.local –To Deepak@chakka.local –Subject “Test Email” –Body “Testing the cmdlet” –SmtpServer exch07.chakka.local

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

%d bloggers like this: