Powershell module to send email without need for SMTP relay server

This script module contains Send-Email function that can be used to send email messages from Powershell. This function has the following advantages/differences compared to the Powershell native Send-MailMessage cmdlet:

Although this was purpose-built to handle bulk emails, it can also be used for script/Powershell based notifications/alerting – similar to the work of Jason (Robert) Morgan.

To use this module, download the .rar file, use WinRar or similar tool to extract its contents, unblock the files, open the Installer script in Powershell_ISE and run it. Then simply use the Send-Email function as you would any PS cmdlet.


Send-Email -From samb@mydomain.com -To samb@townsware.com -Subject ‘Test Message’ -Body ‘this is the email body text’ -MyFQDN ‘mail.thismachinedomain.com’ -ShowSMTP



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 )

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.