Upgrading & Uninstalling
WireMailPHPMailer creates zero database tables, zero custom templates or fields, and zero RBAC permissions. All settings live in standard ProcessWire module configuration.
Upgrading WireMailPHPMailer
Section titled “Upgrading WireMailPHPMailer”Always take a database backup (php vendor/bin/wire db:backup) before upgrading in production.
-
Update the package and refresh modules so ProcessWire runs
___upgrade()automatically:Terminal window composer update trk/processwire-php-mailerphp vendor/bin/wire module:refresh
- Open Setup -> Upgrades (with
ProcessWireUpgrade) or navigate to Modules -> New and use Add Module from Directory (WireMailPHPMailer), Add Module from URL, or Add Module from Upload (ZIP archive) to replace the module files (ensurephpmailer/phpmailerinvendor/autoload.phpmeets the new version requirement). - Click Modules -> Refresh so ProcessWire detects the new version and executes
___upgrade()automatically.
- Replace
site/modules/WireMailPHPMailer/with the new release directory (ensurephpmailer/phpmailerinvendor/autoload.phpmeets the new version requirement). - Open Modules -> Refresh in the ProcessWire Admin (or run
php vendor/bin/wire module:refresh) so___upgrade()executes cleanly.
Uninstalling WireMailPHPMailer
Section titled “Uninstalling WireMailPHPMailer”-
Replace any direct
WireMailPHPMailerclass references with generic$this->wire()->mail->new()calls if you still send email via another transport. -
Uninstall the module from Modules -> Site -> WireMailPHPMailer -> Uninstall or via CLI:
Terminal window php vendor/bin/wire module:uninstall WireMailPHPMailer -
Remove the Composer package (optional):
Terminal window composer remove trk/processwire-php-mailer