Project

Mailozaurr

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.

Stars219
Forks17
Open issues0
PowerShell Gallery downloads1226648
ReleaseMailozaurr-v20260306122612
Language: C# Updated: 2026-04-18T22:08:00.0000000+00:00

Curated Examples

Validate email addresses

Use Mailozaurr to validate email address strings from parameters or pipeline input.

This pattern is useful when an automation accepts address lists from files, forms, or another system.

It comes from the source example at Examples/Example-ValidateEmail.ps1.

When to use this pattern

  • You accept email addresses from user input.
  • You import recipients from CSV or another system.
  • You want invalid values to be visible before sending.

Example

Import-Module .\Mailozaurr.psd1 -Force

$addresses = '[email protected]', 'broken-address', '[email protected]'
$addresses | Test-EmailAddress -Verbose | Format-Table

What this demonstrates

  • validating parameter and pipeline input
  • making bad addresses visible early
  • keeping send workflows separate from validation

Source