v1.0.0
What's Changed
- Add support for delegated sending using Microsoft Graph (Connect-MgGraph) by @PrzemyslawKlys in #38 - It uses Microsoft.Graph.Authentication module and
MgGraphRequest
switch onSend-EmailMessage
.
Import-Module Mailozaurr
Import-Module Microsoft.Graph.Authentication -Force
# this shows how to send email using combination of Mailozaurr and Microsoft.Graph to use Connect-MgGraph to authorize
$Body = EmailBody {
New-HTMLText -Text "This is test of Connect-MGGraph functionality"
}
# authorize via Connect-MgGraph with delegated rights or any other supported method
Connect-MgGraph -Scopes Mail.Send
# sending email
$sendEmailMessageSplat = @{
From = '[email protected]'
To = '[email protected]'
HTML = $Body
Subject = 'This tests email as delegated'
MgGraphRequest = $true
Verbose = $true
}
Send-EmailMessage @sendEmailMessageSplat
Full Changelog: v0.9.0...v1.0.0