Skip to content

WireMailPHPMailer for ProcessWire

WireMailPHPMailer (trk/processwire-php-mailer) extends ProcessWire’s native WireMail with PHPMailer v7, giving every module and template reliable SMTP, DSN, Sendmail, XOAUTH2, and DKIM-signed transactional email delivery without changing a single $mail->new() call.

SMTP, DSN & Sendmail Transports

Configure authenticated STARTTLS/SMTPS relays, compact smtp:// / smtps:// DSN strings, Sendmail, or PHP mail() through a 6-tab ProcessWire config screen.

XOAUTH2 Provider Enum

Authenticate cleanly with OAuthProvider::Google, OAuthProvider::Microsoft, OAuthProvider::Azure, and OAuthProvider::Yahoo without storing static SMTP passwords.

DKIM Signing & CC/BCC/Attachments

Sign outbound messages with DKIM keys, add cc() and bcc() recipients, and attach local files guarded against symlinks, stream wrappers, .. traversal, and site/config*.php.

Write-Only Secrets & Test Doubles

Passwords, refresh tokens, DSNs, and DKIM private keys are masked before render, redacted in logs via redactDsnCredentials(), and swappable with setMailer() in tests.

Requirement Minimum Version Notes
PHP 8.4+ Requires ext-openssl for TLS/SMTPS and DKIM signing.
ProcessWire 3.0.210+ Standalone WireMail extension (singular => false, autoload => false) with zero first-party module dependencies.
Upstream Engine PHPMailer v7 Installed automatically via Composer (phpmailer/phpmailer).
Admin UI Module Config (WireMailPHPMailerConfig) 6-tab configuration at Modules -> Configure -> WireMailPHPMailer including live Test Email tab.

Next steps