Mailozaurr is a PowerShell module that aims to provide SMTP, POP3, IMAP and probably some other ways to interact with Email. Underneath it uses MimeKit and MailKit libraries written by Jeffrey Stedfast.
ConvertFrom-EmlToMsg
to convert EML files to MSG filesImport-MailFile
to import MSG/EML files to PowerShell ObjectGet-MailMessage
Get-MailMessageAttachment
Find-BIMIRecord
Find-CAARecord
Find-DANERecord
Find-MTASTSRecord
Find-O365OpenIDRecord
Find-SecurityTxtRecord
Find-TLSRPTRecord
Find-DNSSECRecord
Find-DMARCRecord
to return more dataGet-DMARCData
to read DMARC data from XML filesFind-IPGeolocation
to get IP Geolocation dataFull Changelog: https://github.com/EvotecIT/Mailozaurr/compare/v1.0.2...v2.0.0-Preview4
SkipCertificateValidatation
to SkipCertificateValidation
in Send-EmailMessage
(typo fix)SkipCertificateValidation
to Connect-IMAP
SkipCertificateValidation
to Connect-POP3
SkipCertificateRevocation
to Connect-IMAP
SkipCertificateRevocation
to Connect-POP3
Full Changelog: https://github.com/EvotecIT/Mailozaurr/compare/v1.0.1...v1.0.2
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: https://github.com/EvotecIT/Mailozaurr/compare/v0.9.0...v1.0.0