Jump to content

WireMailBrevo


Recommended Posts

Just launched my first public Module¬†ūüéČ

This module allows ProcessWire to send transactional emails via Brevo.

Download the latest version: https://github.com/ttttim0709/WireMailBrevo

Installation

  • Copy the WireMailBrevo directory into your site/modules/ directory.
  • In the ProcessWire admin, go to Modules > Refresh.
  • 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></body></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.
  • Like 5
  • Thanks 2
Link to comment
Share on other sites

Ah, I like PostmarkApp for transactional stuff, but their monthly limit is a quite low on the free tier (though I am thankful for it.) Brevo's limits are somewhat better.

I will be trying out this module soon, as I'm just calling brevo's API directly at the moment and want to use a module for this.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

√ó
√ó
  • Create New...