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.

Stars218
Forks17
Open issues0
PowerShell Gallery downloads1226363
ReleaseMailozaurr-v2.0.1-Preview4
Language: C# Updated: 2026-04-11T10:18:50.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 = 'admin@example.com', 'broken-address', 'helpdesk@example.org'
$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