Skip to content

v1.0.0

Compare
Choose a tag to compare
@PrzemyslawKlys PrzemyslawKlys released this 20 Dec 14:34
· 16 commits to master since this release
fdd8029

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 on Send-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