Download the PHP package trk/processwire-php-mailer without Composer

On this page you can find all versions of the php package trk/processwire-php-mailer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package processwire-php-mailer

WireMailPHPMailer

A robust, modern integration of the popular PHPMailer library for the ProcessWire CMS/CMF. This module transparently extends the core WireMail class, allowing you to use advanced mailing features via familiar API calls, or access the native PHPMailer instance directly for fine-grained control.

Requirements

Installation

  1. Copy the module files into your site/modules/WireMailPHPMailer/ directory.
  2. In the ProcessWire admin, go to Modules > Refresh.
  3. Locate WireMailPHPMailer under the WireMail section and click Install.
  4. Configure your SMTP, Sendmail, or PHP Mail settings directly via the module's configuration screen.

(Note: The module comes pre-packaged with the PHPMailer library in the vendor directory. You do not need to run Composer manually unless you are doing custom developmental modifications.)

Usage

You can use the module through the standard ProcessWire WireMail API or access the underlying PHPMailer instance directly.

1. The Classic WireMail Way (Recommended)

This approach seamlessly integrates into existing ProcessWire core API workflows.

2. The Native PHPMailer Way

If you need advanced configuration, attachments, or specific PHPMailer features, you can interact with the instance directly.

Features & Configuration

The module provides an extensive settings page in the ProcessWire admin (Modules > Configure > WireMailPHPMailer) where you can define:

XOAUTH2 (Google, Microsoft, Yahoo, Azure) Support

WireMailPHPMailer supports natively injecting XOAUTH2 authentication directly into ProcessWire's unified WireMail flow via the underlying PHPMailer engine.

Because OAuth2 providers are heavy, this module allows you to selectively install the right provider package to the root workspace using Composer, keeping the module core lightweight.

1. Install an OAuth2 Provider Library

From your ProcessWire project root (where the main composer.json is located), require the provider:

2. Configure XOAUTH2 Settings

  1. Go to Modules > Configure > WireMailPHPMailer.
  2. Select XOAUTH2 under Auth Type.
  3. Fill out the OAuth2 Settings block that appears below it:
    • Select the OAuth Provider (Google, Yahoo, Microsoft, or Azure).
    • Enter your OAuth Email (the account initiating sending).
    • Provide your Client ID and Client Secret.
    • (Azure Only) Specify your Tenant ID (or leave default common).
  4. Save the module settings.

3. Generate a Refresh Token

After saving your Client ID and Client Secret, an Authorize via {Provider} button will appear in the settings.

  1. Click the authorization button.
  2. Follow the prompt to consent and log into your provider account.
  3. You will be redirected back securely to the module's setup page, where the module automatically pulls and saves your Refresh Token.

That's it! WireMailPHPMailer will intercept ProcessWire's Mail sends and handle token refreshes in the background natively.

Support & Links

License

This module is free and open-source software.


All versions of processwire-php-mailer with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
hari/pw-module Version ~1.0
phpmailer/phpmailer Version ^7.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package trk/processwire-php-mailer contains the following files

Loading the files please wait ...