🎉 VaultMail for phpBB is finally here | Get it now →
Premium Extension · phpBB 3.3.x

phpBB email,
finally
professional.

VaultMail hooks into phpBB’s notification pipeline and replaces its plain-text mailer with a fully ACP-driven HTML email system — per-type templates, multilingual variants, three sending backends, and a privacy-first audit log.

Explore →
13 Email Types
3 Backends
Languages
0 Bodies Stored
my_extension.php — VaultMail API
// Send any registered template from your extension
use vaultbb\vaultmail\vaultmail\api;

/** @var api $mailer */
$mailer = $this->container->get(‘vaultbb.vaultmail.api’);

if ($mailer->isAvailable()) {
  $ok = $mailer->send(
    ‘registration_welcome’,
    [email protected],
    [‘username’ => ‘Elara’],
    ‘my_extension’
  );
}

// Returns true — logged, templated, dispatched.
// ✓ sent · smtp · 0.43ms
phpBB vs VaultMail

What phpBB ships with.
What your forum deserves.

phpBB 3.3.x — Default
  • Plain-text emails only — no HTML
  • Hardcoded .txt template files
  • No per-type control or enabling
  • ~Multilingual via per-lang .txt files — no ACP editor, no per-type variant control
  • ~PHP mail() + board SMTP — no per-send switching, no API/transactional providers
  • No password-changed confirmation email
  • ~Basic global test mode — no per-type sandbox, no catch-all address redirect
  • No delivery audit log
  • No developer API for third-party sends
VaultMail — Installed
  • +Full HTML templates with branded shell
  • +ACP template editor with live preview
  • +Enable/disable VaultMail per email type
  • +ACP-managed language variants — per type, with fallback chain
  • +Per-send backend switching: PHPMail · SMTP · Transactional API
  • +New types phpBB never had: mod queue alert, password changed
  • +Per-type sandbox with catch-all address redirect and log status
  • +Metadata audit log — body never stored
  • +DI-native developer API for third-party extensions

 Not available    ~  Available but limited — VaultMail adds ACP control, flexibility, or missing capability

Architecture

How VaultMail intercepts
phpBB’s mail pipeline

01
📨

phpBB fires notification

Any outgoing email — activation, PM, report — passes through phpBB’s messenger class and notification system.

02
🎯

Hook captures context

The core.modify_notification_template event fires. VaultMail captures the template filename and raw phpBB variables via reflection.

03
🔍

Type is resolved

The Resolver maps the template file to one of 20 VaultMail keys via FILE_MAP — language-independent, zero body parsing.

04
🎨

Template is rendered

Your HTML template is fetched from DB, the correct language variant is selected, and variables are injected via two-layer extraction.

05
🚀

Sent & logged

Dispatched via your configured backend. Metadata written to audit log — recipient, template key, status, backend. Body never stored.

Features

Nine reasons your
forum email transforms.

From ACP-managed HTML templates to privacy-safe logging — every feature designed for forum admins who actually care about their members’ experience.

F-01
Per-Type Template Control
Each of phpBB’s email types gets its own HTML template in the ACP. Enable or disable VaultMail independently per type — disabled types fall back to phpBB’s native plain-text system.
Selective Override Graceful Fallback
F-02
Multilingual Variants
Create language-specific template variants per email type. VaultMail auto-selects based on the recipient’s board language with a configurable fallback chain — no extra code.
Language Detection Fallback Chain
F-03
Multi-Backend Sending
Switch between PHP mail(), direct SMTP with TLS/STARTTLS, or transactional API providers (Mailgun, SendGrid, Postmark, custom) — entirely from the ACP settings page.
PHPMail SMTP+TLS API
F-04
HTML Shell Templates
A global branded shell wraps all emails. Edit header, footer, and styles in the ACP template editor. Individual templates can bypass the shell when full custom layout is needed.
Bypass Shell ACP Editor
F-05
Sandbox Test Mode
Enable test mode and set a catch-all address. Every outgoing email is silently redirected there, logged with status “test”. Configure and verify with zero risk to real members.
Catch Address Safe Setup
F-06
Privacy-First Audit Log
Every send is logged — recipient, template key, language, backend, status, triggered-by. Email body is never stored. Full ACP search, filtering, and log retention controls.
No Body Storage Searchable
F-07
Two-Layer Variable Extraction
Variables are resolved from both a pre-send ContextStore (captured via hook before phpBB renders the template) and a static VAR_MAP — zero language-dependency, zero body parsing.
ContextStore VAR_MAP
F-08
HTML Shell Templates
A global branded HTML shell wraps all outgoing emails. The default shell is a clean, table-based layout seeded on install and fully editable in the ACP template editor. Individual templates can bypass the shell for a fully custom layout.
ACP Editor Bypass Shell Table-Based
F-09
Developer API
Resolve vaultbb.vaultmail.api from phpBB’s DI container. Send any template programmatically — language, rendering, logging, and dispatch handled automatically.
DI Container isAvailable() Auto-logged
Coverage

Every email type,
under your control.

13 email templates covering registration, account management, subscriptions, messaging, and moderation. Some types — like password confirmation and moderation queue alerts — go beyond what phpBB sends by default.

Template Key Description Category Origin
registration_welcomeRegistration — Welcome EmailRegistrationphpBB Core
registration_activationRegistration — Email/Admin ActivationRegistrationphpBB Core
registration_admin_approveRegistration — Admin Approval RequiredRegistrationphpBB Core
password_resetAccount — Password Reset RequestAccountphpBB Core
password_changedAccount — Password Changed ConfirmationAccountVaultMail ✦
email_change_verifyAccount — Email Address Change VerificationAccountphpBB Core
private_message_notifyPrivate Messages — New PM NotificationMessagingphpBB Core
thread_subscriptionSubscriptions — New Reply in Watched TopicSubscriptionsphpBB Core
forum_subscriptionSubscriptions — New Topic/Reply in Watched ForumSubscriptionsphpBB Core
report_notificationModeration — New Report SubmittedModerationphpBB Core
moderation_queue_alertModeration — Post/Topic Awaiting ApprovalModerationphpBB Core
mass_mailAdmin Tools — Mass Email to UsersAdminphpBB Core
contact_us_adminContact — Contact Form Submission to AdminContactphpBB Core

✦ VaultMail registers this template — phpBB has no built-in email for this event.  Showing all 13 templates. Shell template (shell_default) is omitted — it is the wrapper, not an email type.

Sending Backends

One extension.
Three ways to deliver.

Switch backends in ACP settings — no code changes, no reinstall. Live connection testing built in before you go live.

🐘
PHP mail()
backend: phpmail

Delegates to phpBB’s built-in mail handler. Zero configuration — ideal for shared hosting. Lowest friction to get started.

  • Zero configuration required
  • Shared hosting compatible
  • Instant setup
Transactional API
backend: api

Send via JSON API. Pre-built profiles for Mailgun, SendGrid, and Postmark. Or supply your own endpoint and auth configuration.

  • Mailgun · SendGrid · Postmark
  • Custom endpoint support
  • Bearer or custom header auth
  • Live connection test
Developer API

Send from any extension.
Zero boilerplate.

VaultMail is natively integrated with phpBB’s dependency injection container. Resolve the API service, check availability, and send — rendering, language selection, backend routing, and logging are all handled for you.

my_extension/event/main_listener.php
/**
* @var \vaultbb\vaultmail\vaultmail\api
*/
protected $vaultmail;

// Resolve from DI container in constructor
public function __construct(
  \vaultbb\vaultmail\vaultmail\api $vaultmail
) {
  $this->vaultmail = $vaultmail;
}

public function on_user_registered($event) {
  if (!$this->vaultmail->isAvailable()) return;

  $this->vaultmail->send(
    ‘registration_welcome’,
    $event[‘user_row’][‘user_email’],
    [‘username’ => $event[‘user_row’][‘username’]],
    ‘my_extension’ // triggered_by label
  );
}
🧩
Native DI Container Integration
Resolve vaultbb.vaultmail.api directly in your service definition. No static calls, no global state — idiomatic phpBB extension code.
🛡️
Graceful isAvailable() Guard
Call isAvailable() before sending — returns false safely if VaultMail is not installed or is disabled. Your extension never breaks on boards without VaultMail.
🌐
Automatic Language Resolution
Pass an optional language code or let VaultMail auto-resolve the correct variant for the recipient. Your extension stays fully language-agnostic.
📝
Automatic Audit Logging
Every API send is logged with triggered_by set to your extension name — fully traceable and auditable alongside native phpBB sends.
🎨
sendRaw() for One-offs
Need to send a completely custom HTML email without a registered template? sendRaw() accepts subject and body directly — still logged, still dispatched via the configured backend.
Audit Log

Know what was sent.
And what wasn’t.

Metadata-only logging by design. Recipient, template key, language, backend, status, triggered-by source — all recorded. Email body never stored. Configurable retention, ACP search, and log purging built in.

Mail Log — Live
Timestamp Recipient Template Key Lang Backend Status Triggered By
2026-02-24 14:32 [email protected] registration_welcome english smtp ● sent phpbb_core
2026-02-24 14:28 [email protected] private_message_notify english smtp ● sent phpbb_core
2026-02-24 14:21 [email protected] password_reset english smtp ● test phpbb_core
2026-02-24 14:15 [email protected] ban_notification english api ● sent vaultmail_hook
2026-02-24 13:59 [email protected] moderation_queue_alert english api ● failed vaultmail_hook
2026-02-24 13:44 [email protected] thread_subscription french smtp ● sent phpbb_core
2026-02-24 13:30 [email protected] registration_welcome english smtp ● delegated my_extension
Requires VaultBB Core ≥ 1.2.0. VaultMail depends on Core for its registry, admin UI, logging, and security layer. Install Core first — it’s free.
Get VaultBB Core — Free →
VaultMail for phpBB

Your forum deserves
better email.

One extension. Every feature. The email system phpBB should have shipped with.

Get Core — Free
vaultbb.com  ·  VaultMail v1.0.0 for phpBB 3.3.x © 2026 VaultBB. All rights reserved.