PHPackages                             nswdpc/silverstripe-structured-email - 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. nswdpc/silverstripe-structured-email

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

nswdpc/silverstripe-structured-email
====================================

Structured email for Silverstripe

v1.1.0(1mo ago)01.4k[1 PRs](https://github.com/nswdpc/silverstripe-structured-email/pulls)BSD-3-ClausePHP

Since Jun 30Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/nswdpc/silverstripe-structured-email)[ Packagist](https://packagist.org/packages/nswdpc/silverstripe-structured-email)[ RSS](/packages/nswdpc-silverstripe-structured-email/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (33)Versions (22)Used By (0)

Structured email handling for Silverstripe
------------------------------------------

[](#structured-email-handling-for-silverstripe)

The goal of this module is to produce simple and easy-to-digest emails ([more](./docs/en/001_index.md)) using a consistent template. The templates used are based on the [Postmark Transactional Email Templates](https://github.com/ActiveCampaign/postmark-templates).

For specific core emails, it will attempt to detect the purpose of the email based on the template name:

- `SilverStripe/Control/Email/ForgotPasswordEmail` - the forgot password email
- `SilverStripe/Control/Email/ChangePasswordEmail` - the changed password email

TODO:

- `SilverStripe/MFA/Email/*` - MFA emails
- `SilverStripe/ContentReview/*` - Content review emails
- `SubmittedFormEmail` - user defined form generic email
- `SubmittedFormEmailPlain` - user defined form generic email (plain text)

### Existing templates

[](#existing-templates)

If the class encounters a complete HTML document in the email, it will use HTML contained within the `` tag of that document as the email content.

Schema.org
----------

[](#schemaorg)

[Reference](./docs/en/004_schemaorg.md)

Resources
---------

[](#resources)

- E-mail support across clients:
- Postmark templates:

Usage
-----

[](#usage)

1. Create emails in the standard way
2. The MailerSubscriber extension will catch emails prior to being sent
3. Email content is updated based on the default template and decorator provided
4. Emails will then be sent out with the updated template and a plain text part

[More documentation](./docs/en/001_index.md)

Installation
------------

[](#installation)

The only supported way of installing this module is via [composer](https://getcomposer.org/download/)

```
composer require nswdpc/silverstripe-structured-email
```

License
-------

[](#license)

[BSD-3-Clause](./LICENSE.md)

Maintainers
-----------

[](#maintainers)

- [dpcdigital@NSWDPC:~$](https://dpc.nsw.gov.au)

The source of the HTML email templates is the [Postmark templates project](https://github.com/ActiveCampaign/postmark-templates)

Bugtracker
----------

[](#bugtracker)

We welcome bug reports, pull requests and feature requests on the Github Issue tracker for this project.

Please review the [code of conduct](./code-of-conduct.md) prior to opening a new issue.

Security
--------

[](#security)

If you have found a security issue with this module, please email digital\[@\]dpc.nsw.gov.au in the first instance, detailing your findings.

Development and contribution
----------------------------

[](#development-and-contribution)

If you would like to make contributions to the module please ensure you raise a pull request and discuss with the module maintainers.

Please review the [code of conduct](./code-of-conduct.md) prior to completing a pull request.

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance93

Actively maintained with recent releases

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.8% 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 ~102 days

Recently: every ~77 days

Total

15

Last Release

35d ago

Major Versions

v0.2.1 → v1.0.0-rc12024-11-28

v0.2.2 → v1.0.1-rc12025-04-03

v1.0.6 → v2.0.0-rc12025-07-23

### Community

Maintainers

![](https://www.gravatar.com/avatar/1caefd99092b4a43254e48c40347224f671032ec1ffc3a457e06a7e9ab6e7c02?d=identicon)[nswdpc](/maintainers/nswdpc)

---

Top Contributors

[![JamesDPC](https://avatars.githubusercontent.com/u/69664712?v=4)](https://github.com/JamesDPC "JamesDPC (90 commits)")[![tardinha](https://avatars.githubusercontent.com/u/457209?v=4)](https://github.com/tardinha "tardinha (2 commits)")

---

Tags

emailsilverstripeschema.orgemail-templates

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/nswdpc-silverstripe-structured-email/health.svg)

```
[![Health](https://phpackages.com/badges/nswdpc-silverstripe-structured-email/health.svg)](https://phpackages.com/packages/nswdpc-silverstripe-structured-email)
```

###  Alternatives

[markguinn/silverstripe-email-helpers

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

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

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

2114.9k](/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)
