Skip to content

Upgrading & Uninstalling

WireMailPHPMailer creates zero database tables, zero custom templates or fields, and zero RBAC permissions. All settings live in standard ProcessWire module configuration.

Always take a database backup (php vendor/bin/wire db:backup) before upgrading in production.

  1. Update the package and refresh modules so ProcessWire runs ___upgrade() automatically:

    Terminal window
    composer update trk/processwire-php-mailer
    php vendor/bin/wire module:refresh
  1. Replace any direct WireMailPHPMailer class references with generic $this->wire()->mail->new() calls if you still send email via another transport.

  2. Uninstall the module from Modules -> Site -> WireMailPHPMailer -> Uninstall or via CLI:

    Terminal window
    php vendor/bin/wire module:uninstall WireMailPHPMailer
  3. Remove the Composer package (optional):

    Terminal window
    composer remove trk/processwire-php-mailer

Next steps