Skip to content

PowerShell wrapper of selected Microsoft Outlook functionality.

License

Notifications You must be signed in to change notification settings

craibuc/PsOutlook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PsOutlook

PowerShell wrapper of selected Microsoft Outlook functionality.

Installation

  • Download the latest version of PsOutlook
  • Unzip
  • Copy the PsOutlook folder to C:\Users\<account>\Documents\WindowsPowerShell\Modules
  • Type PS> Import-Module PsOutlook -Force in script's directory or add to $Profile

Usage

# send the message without interaction
PS> Send-Mail -To @("recipient@domain0.tld","recipient@domain1.tld") -Subject "the subject" -Body "the message" -Attachments @("path/to/attachment0","path/to/attachmentN")
# show the message
PS> Send-Mail -To @("recipient@domain0.tld","recipient@domain1.tld") -Subject "the subject" -Body "the message" -Attachments @("path/to/attachment0","path/to/attachmentN") -Preview
# alternative syntax
$Message = @{
  To=@("recipient@domain0.tld","recipient@domain1.tld")
  Subject="the subject"
  Body="the message" 
  Attachments=@("path/to/attachment0","path/to/attachmentN")
  Preview=$True
}

PS> Send-Mail @Message

Contributors

About

PowerShell wrapper of selected Microsoft Outlook functionality.

Resources

License

Stars

Watchers

Forks

Packages

No packages published