WireMailMandrill by Craig Rodway

A WireMail implementation using the Mandrill HTTP API

WireMailMandrill

This module is an extension for the WireMail class to utilise the Mandrill HTTPS API.

It includes the official Mandrill PHP API client library.

Installation

  • Place module files inside /site/modules/WireMailMandrill/
  • Follow the standard ProcessWire module installation method (Admin, Modules, New, Refresh, Install)
  • Obtain a Mandrill API key from the logged in Settings page.
  • View the WireMailMandrill module configuration page and enter the API key.

Usage

All messaging functions throughout the site that use WireMail or wireMail() when this module is installed.

Example code


$mail = wireMail();

$mail->from('john.hammond@jurassicpark.com', 'John Hammond');
$mail->to('alan.grant@dinosaurfun.com', 'Alan Grant');
$mail->subject('The park is open');
$mail->bodyHTML($bodyHTML);

// Add an attachment
$mail->attachment($somePage->files->first()->filename);

$count = $mail->send();

Links


Changelog


v0.0.1 2015-05-30

  • Initial release, beta.

Licence


GPLv2

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

Latest news

  • ProcessWire Weekly #559
    The 559th issue of ProcessWire Weekly brings in all the latest news from the ProcessWire community. Modules, sites, and more. Read on!
    Weekly.pw / 25 January 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

“Indeed, if ProcessWire can be considered as a CMS in its own right, it also offers all the advantages of a CMF (Content Management Framework). Unlike other solutions, the programmer is not forced to follow the proposed model and can integrate his/her ways of doing things.” —Guy Verville, Spiria Digital Inc.