Skip to content

Apoc70/Send-TestMail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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