Skip to content
PLEASE NOTE, this fork only represents our extended support to the community.
PHP Scheme
Branch: master
Clone or download
Pull request Compare This branch is 20 commits behind nyeholt:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
_config
code
templates
tests
.travis.yml
LICENSE.md
README.md
composer.json

README.md

SilverStripe Mail Capture module

Build Status

A module for capturing outbound emails in data objects that can then be viewed by users in the CMS directly.

Useful for sites that are in development (or on test/staging servers) where users need to be able to use functionality that sends emails, but it is not desirable to have these emails actually go out to the recipients.

This module defaults to not sending emails, but supports sending via an out bound mailer, this is configured via yml, e.g:

---
Name: mymailcapture
after: mailcapture
---
Injector:
  Mailer:
    class: CaptureMailer
    properties:
      outboundMailer: %$MailerObject
      # Set to false to enable pass through of emails without logging
      captureEmails: FALSE
  MailerObject:
    class: Mailer

Using on Silverstripe 3.1

Due to API breakages between 3.1 and 3.2, you must add the following line to your config to override the Mailer:

Email::set_mailer(Injector::inst()->get('Mailer'));
You can’t perform that action at this time.