WireMailBrevo by Timothy de Vos

Allows Processwire to send transactional email via Brevo

WireMailBrevo Module for ProcessWire CMF/CMS

This module allows ProcessWire to send transactional emails via Brevo.

Installation


  1. Copy the WireMailBrevo directory into your site/modules/ directory.
  2. In the ProcessWire admin, go to Modules > Refresh.
  3. Click "Install" next to the WireMailBrevo module.

Usage


Example usage:

$email = $mail->new();
$email->to = 'recipient@somedomain.com';
$email->subject = 'Test #1';
$email->body = 'An example email';
$email->send();

Use of Versions: Check the Brevo dev section for more information about Message versions

$email->versions([
    [
        'to' => [
            [
                'email' => 'bob@example.com',
                'name' => 'Bob Anderson'
            ],
            [
                'email' => 'anne@example.com',
                'name' => 'Anne Smith'
            ],
        ],
        'subject' => 'This is my version subject line',
    ],
    [
        'to' => [
            [
                'email' => 'jim@example.com',
                'name' => 'Jim Stevens'
            ]
        ],
        'htmlContent' => "<!DOCTYPE html><html><body><h1>Modified header!</h1><p>This is still a paragraph</p>&lt;/body&gt;</html>",
    ],
]);

Configuration


After installing the module, you can configure it by going to the module settings page. You need to provide the following configuration options:

  • Brevo API Key: Obtain this key from your Brevo account settings.
  • Sender Email Address: The email address to be used as the sender.
  • Sender Name: The name associated with the sender's email address.

Install and use modules at your own risk. Always have a site and database backup before installing new modules.

Latest news

  • ProcessWire Weekly #562
    In the 562nd issue of ProcessWire Weekly we're going to cover the latest core updates, introduce a very interesting triplet of newly released third party modules by Bernhard Baumrock, and more. Read on!
    Weekly.pw / 15 February 2025
  • ProcessWire 3.0.244 new main/master version
    ProcessWire 3.0.244 is our newest main/master/stable version. It's been more than a year in the making and is packed with tons of new features, issue fixes, optimizations and more. This post covers all the details.
    Blog / 18 January 2025
  • Subscribe to weekly ProcessWire news

“To Drupal, or to ProcessWire? The million dollar choice. We decided to make an early switch to PW. And in retrospect, ProcessWire was probably the best decision we made. Thanks are due to ProcessWire and the amazing system and set of modules that are in place.” —Unni Krishnan, Founder of PigtailPundits