WireMailMandrill by craig-a-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();

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.

Twitter updates

  • This week we focus in on a new and unique Inputfield module added to the core that enables a lot of useful new input capabilities for tags, sortable multiple selection and custom user input— More
    30 April 2021
  • With more than 25 commits, ProcessWire 3.0.176 resolves lots of minor issues, adds support for multiple randomly selected read-only database connections, upgrades the tag features in the Template editor, adds a useful new Tags Inputfield, and more… More
    23 April 2021
  • This week ProcessWire (3.0.175) gained the ability to maintain separate read-only and read-write database connections to optimize scalability, cost and performance. The post covers why this can be so valuable and how to configure it in ProcessWire— More
    2 April 2021

Latest news

  • ProcessWire Weekly #365
    In the 365th issue of ProcessWire Weekly we're going to check out the latest core updates, introduce a new third party module called FieldtypeOembed, and more. Read on!
    Weekly.pw / 9 May 2021
  • ProcessWire 3.0.177 core updates
    This week we focus in on a new and unique Inputfield module added to the core that enables a lot of useful new input capabilities for tags, sortable multiple selection and custom user input.
    Blog / 30 April 2021
  • Subscribe to weekly ProcessWire news

I just love the easy and intuitive ProcessWire API. ProcessWire rocks!” —Jens Martsch, Web developer