PHPackages                             symbiote/silverstripe-mailcapture - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. symbiote/silverstripe-mailcapture

ActiveSilverstripe-module[Mail &amp; Notifications](/categories/mail)

symbiote/silverstripe-mailcapture
=================================

A module for development/staging systems that capture email within the repository instead of actually sending to a user. These emails can then be browsed within the CMS.

3.0.2(6y ago)91.1k11[4 PRs](https://github.com/nyeholt/silverstripe-mailcapture/pulls)BSD-3-ClausePHP

Since Jun 10Pushed 2y ago2 watchersCompare

[ Source](https://github.com/nyeholt/silverstripe-mailcapture)[ Packagist](https://packagist.org/packages/symbiote/silverstripe-mailcapture)[ RSS](/packages/symbiote-silverstripe-mailcapture/feed)WikiDiscussions master Synced yesterday

READMEChangelog (4)Dependencies (1)Versions (8)Used By (0)

SilverStripe Mail Capture module
================================

[](#silverstripe-mail-capture-module)

[![Build Status](https://camo.githubusercontent.com/5df29ed67b3a6fe8f45644523ed0790e9ade485302cc19c5bfb83f5e756f7dfa/68747470733a2f2f7472617669732d63692e6f72672f6e7965686f6c742f73696c7665727374726970652d6d61696c636170747572652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/nyeholt/silverstripe-mailcapture)

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
---
SilverStripe\Core\Injector\Injector:
  SilverStripe\Control\Email\Mailer:
    class: Symbiote\MailCapture\Control\Email\CaptureMailer
    properties:
     # Set to FALSE to enable pass through of emails without logging
      recordEmails: TRUE
     # Set to TRUE to send emails, uses the configured SwiftMailer
      sendMailOutbound: TRUE
```

Composer Install
----------------

[](#composer-install)

**[SilverStripe 3.X](https://github.com/symbiote/silverstripe-mailcapture/tree/2)**

```
composer require symbiote/silverstripe-mailcapture:~2.0

```

**[SilverStripe 4.X](https://github.com/symbiote/silverstripe-mailcapture/tree/master)**

```
composer require symbiote/silverstripe-mailcapture:~3.0

```

Requirements
------------

[](#requirements)

- PHP 7.0+
- SilverStripe 4.0+

Breaking Changes
----------------

[](#breaking-changes)

When upgrading from SilverStripe 3.x to SilverStripe 4.x, the yml file has changed syntax and function. As an example this yml configure would record a copy of each email and use the default Mailer object to send emails over SMTP:

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

The same functionality in the new syntax looks like this:

```
---
Name: mymailcapture
after: mailcapture
---
SilverStripe\Core\Injector\Injector:
  SilverStripe\Control\Email\Mailer:
    class: Symbiote\MailCapture\Control\Email\CaptureMailer
    properties:
     # Set to FALSE to enable pass through of emails without logging
      recordEmails: TRUE
     # Set to TRUE to send emails, uses the configured SwiftMailer
      sendMailOutbound: TRUE
```

`captureEmails` is now `recordEmails` this removes the ambiguous capture word making the intent of the setting clearer. `outboundMailer` is no longer used as the CaptureMailer classes instead uses the SwiftMailer transport that is configured for the site. To enable sending of emails externally we set `sendMailOutbound`.

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 89.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~259 days

Recently: every ~284 days

Total

7

Last Release

2435d ago

Major Versions

1.0.1 → 2.0.02016-07-29

2.0.1 → 3.0.02019-05-06

### Community

Maintainers

![](https://www.gravatar.com/avatar/25cb1c56a7ab949d1e6b28a2a04862ce1cffe1799a291e1797f8dfd33cd83716?d=identicon)[nyeholt](/maintainers/nyeholt)

---

Top Contributors

[![nyeholt](https://avatars.githubusercontent.com/u/161730?v=4)](https://github.com/nyeholt "nyeholt (17 commits)")[![Neumes](https://avatars.githubusercontent.com/u/8358226?v=4)](https://github.com/Neumes "Neumes (1 commits)")[![sheadawson](https://avatars.githubusercontent.com/u/1166136?v=4)](https://github.com/sheadawson "sheadawson (1 commits)")

---

Tags

mailemailsilverstripe

### Embed Badge

![Health badge](/badges/symbiote-silverstripe-mailcapture/health.svg)

```
[![Health](https://phpackages.com/badges/symbiote-silverstripe-mailcapture/health.svg)](https://phpackages.com/packages/symbiote-silverstripe-mailcapture)
```

###  Alternatives

[markguinn/silverstripe-email-helpers

Silverstripe extension containing SMTP mailer class and some other classes for HTML emails

3145.4k1](/packages/markguinn-silverstripe-email-helpers)[unclecheese/silverstripe-permamail

Adds database storage of emails and CMS definition of email templates.

2014.8k](/packages/unclecheese-silverstripe-permamail)[camfindlay/apes

The Automated Provision of Email Services (APES) module will allow you to set up an automated sync mechanism between the SilverStripe Member DataObject and MailChimp.

122.6k](/packages/camfindlay-apes)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
