Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

README.md

Send-TestMail.ps1

Send test emails to a configured SMTP host

Description

The script sends a given number of test email to a configured SMTP host for test purposes (primarily Exchange queues, transport agents or anti-virus engines)

Parameters

Normal

Send a normal email containing an Html body and an non malware attachment

Archive

Send an email containg an Html body and a non password protected archive containing mailcious content

ProtectedArchive

Send an email containg an Html body and a password protected archive containing whatever content

Eicar

Send an email containg an the Eicar test string as body and an Eicar test file as attachment Requires an EICAR test file named EICAR-TEST.txt

MessageCount

Number of email messages to send, default is 1, maximum 50

Examples

.\Send-TestMail.ps1 -Normal -MessageCount 10

Send 10 normal emails

.\Send-TestMail.ps1 -Eicar

Send an Eicar test email

Note

THIS CODE IS MADE AVAILABLE AS IS, WITHOUT WARRANTY OF ANY KIND. THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS CODE REMAINS WITH THE USER.

TechNet Gallery

Download and vote at TechNet Gallery

Credits

Written by: Thomas Stensitzki

Stay connected:

For more Office 365, Cloud Security, and Exchange Server stuff checkout services provided by Granikos

You can’t perform that action at this time.