2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
14
Task/Send-email/PowerShell/send-email.psh
Normal file
14
Task/Send-email/PowerShell/send-email.psh
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
[hashtable]$mailMessage = @{
|
||||
From = "weirdBoy@gmail.com"
|
||||
To = "anudderBoy@YourDomain.com"
|
||||
Cc = "daWaghBoss@YourDomain.com"
|
||||
Attachment = "C:\temp\Waggghhhh!_plan.txt"
|
||||
Subject = "Waggghhhh!"
|
||||
Body = "Wagggghhhhhh!"
|
||||
SMTPServer = "smtp.gmail.com"
|
||||
SMTPPort = "587"
|
||||
UseSsl = $true
|
||||
ErrorAction = "SilentlyContinue"
|
||||
}
|
||||
|
||||
Send-MailMessage @mailMessage
|
||||
Loading…
Add table
Add a link
Reference in a new issue