mirror of
https://github.com/helpsystems/EFTScriptSamples.git
synced 2024-10-20 01:57:05 -05:00
11 lines
346 B
PowerShell
11 lines
346 B
PowerShell
$smtpserver = "mail.globalscape.com"
|
|
$from = "watchdog@server.com"
|
|
$to = "jonathan.branan@helpsystems.com"
|
|
$subject = "Folder Watch Dog"
|
|
$port = 25
|
|
|
|
|
|
$body = "Hi there,<br />Folders reaching the limit:<br /><br />"
|
|
|
|
#Send the email
|
|
Send-MailMessage -smtpserver $smtpserver -Port $port -from $from -to $to -subject $subject -body $body -bodyashtml |