EFTScriptSamples/powershell/mail.ps1

11 lines
346 B
PowerShell
Raw Permalink Normal View History

2022-09-13 12:38:57 -05:00
$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