Simple SMTP

Get started with email...


SendSmtp.ps1

Description

Sample code to send SMTP message

Version

1.0

Last Mod

October 2010

Client

NA

Language

PowerShell using .Net Mail

Finish Level

Complete, sample

Description

Basic routine demonstrating sending of SMTP mail message using .Net framework mail classes. Includes ability to specify SMTP Auth credentials for server.  There is a PowerShell cmdlet to send an email message, and that may be preferable/quicker in some situations.  Using the .Net classes gives access to everything you might want to do, if you can decipher the MSDN information intended for C# developers.

Configuration

Define variables within script body.

Execution

Just run it.

Documentation

Just this

Download


Up