2017 © Pedro Peláez
 

silverstripe-module silverstripe-postmark-mailer

Postmark mailer class for SilverStripe

image

jonom/silverstripe-postmark-mailer

Postmark mailer class for SilverStripe

  • Tuesday, February 13, 2018
  • by Jono M
  • Repository
  • 1 Watchers
  • 3 Stars
  • 3,938 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 0 Open issues
  • 3 Versions
  • 3 % Grown

The README.md

Notice for SilverStripe 4 users

This module is for SilverStripe v3 only. SilverStripe 4 supports many email services through configuration only by providing a wrapper for SwiftMailer. Postmark takes some extra work to set up though, because SS4 uses SwiftMailer v5, and the official Postmark adapter for that version is incomplete. Here are a couple of different approaches for working around the issue:, (*1)

SilverStripe Postmark Mailer

This module lets you send SilverStripe emails through the official Postmark PHP library, falling back to PHP's built-in sendmail() if Postmark is unreachable., (*2)

Requirements

Note: an alternative Postmark Mailer class that works with older versions of SilverStripe and PHP is available here., (*3)

Installation

Install with Composer. Learn how, (*4)

composer require "jonom/silverstripe-postmark-mailer:^1.0"

Documentation

You will need to provide a PostmarkAPP API key and at least one verified email address (Sender Signature) that you have set up in your Postmark account. If you try to send an email from a non-verified address, the From address will be changed to the first verified address you provided and a Reply-To field will be set with the original From address., (*5)

Example configuration

In your project's _config.php file:, (*6)

Email::set_mailer(new PostmarkMailer());

or:, (*7)

// Send email through Postmark in live environment only
if (Director::isLive()) {
    Email::set_mailer(new PostmarkMailer());
}

In your project's _config/config.yml file:, (*8)

PostmarkMailer:
  api_key: 'your-key-goes-here'
  sender_signatures:
    - 'example@yourwebsite.com'
    - 'example2@yourwebsite.com'

Maintainer contact

Jono Menz, (*9)

Sponsorship

If you want to boost morale of the maintainer you're welcome to make a small monthly donation through GitHub, or a one time donation through PayPal. ❤️ Thank you!, (*10)

Please also feel free to get in touch if you want to hire the maintainer to develop a new feature, or discuss another opportunity., (*11)

The Versions

13/02 2018

dev-master

9999999-dev

Postmark mailer class for SilverStripe

  Sources   Download

BSD-3-Clause

The Requires

 

email mailer silverstripe postmark

13/02 2018

v2.0.0

2.0.0.0

Postmark mailer class for SilverStripe

  Sources   Download

BSD-3-Clause

The Requires

 

email mailer silverstripe postmark

26/11 2015

v1.0

1.0.0.0

Postmark mailer class for SilverStripe

  Sources   Download

BSD-3-Clause

The Requires

 

email mailer silverstripe postmark