PHPackages                             moritz-sauer-13/silverstripe-templated-emails - 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. [Templating &amp; Views](/categories/templating)
4. /
5. moritz-sauer-13/silverstripe-templated-emails

ActiveLibrary[Templating &amp; Views](/categories/templating)

moritz-sauer-13/silverstripe-templated-emails
=============================================

Adds an easy way to create email templates in SilverStripe

2.0.0(6mo ago)056PHP

Since Oct 1Pushed 6mo agoCompare

[ Source](https://github.com/moritz-sauer-13/silverstripe-templated-emails)[ Packagist](https://packagist.org/packages/moritz-sauer-13/silverstripe-templated-emails)[ RSS](/packages/moritz-sauer-13-silverstripe-templated-emails/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (6)Dependencies (1)Versions (7)Used By (0)

silverstripe-templated-emails
=============================

[](#silverstripe-templated-emails)

A SilverStripe module that provides a unified, theme‑ready email template and automatically renders form data as a table—no manual HTML needed.

[![Preview of the default email template](docs/preview.png)](docs/preview.png)

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

[](#installation)

1. Install the package (in your project directory):

    ```
    composer require moritz-sauer-13/silverstripe-templated-emails
    ```
2. Update database/manifest:

    - run /dev/build?flush=all

> Requirements: SilverStripe CMS 5.x

Quick start
-----------

[](#quick-start)

```
use SilverStripe\Control\Email\Email;
use TemplatedMails\Model\TemplatedEmail;

$email = TemplatedEmail::create()
    ->setTo('to@example.com')
    ->setFrom(Email::config()->admin_email)
    ->setSubject('Contact request')
    ->setGreeting('Hello,')
    ->setTitle('New contact request')
    ->setFormData($data, $form);

$email->send();
```

- If a `$form` is provided, the order and labels are derived from the form fields.
- Additional free text/HTML can still be set via `$email->setBody()` and rendered in the template with `$EmailContent.RAW`.

Configuration (YAML)
--------------------

[](#configuration-yaml)

Keys and defaults:

- skip\_empty: true — Skip empty fields (default)
- excludes: \["SecurityID", "url", "g-recaptcha-response"\] — Exclude exact key names
- exclude\_prefixes: \["action\_"\] — Exclude all keys starting with any of these prefixes
- array\_separator: ", " — Separator for array values
- label\_from\_placeholder: true — Use placeholder as label when Title is empty
- strip\_required\_asterisk: true — Remove trailing asterisk on required field labels

Example app/\_config/email.yml:

```
TemplatedMails\Model\TemplatedEmail:
  skip_empty: true
  excludes:
    - SecurityID
    - url
    - g-recaptcha-response
  exclude_prefixes:
    - 'action_'
  array_separator: ', '
  label_from_placeholder: true
  strip_required_asterisk: true
```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance66

Regular maintenance activity

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~12 days

Total

6

Last Release

206d ago

Major Versions

0.2.1 → 1.02025-10-01

1.0.1 → 2.0.02025-12-02

### Community

Maintainers

![](https://www.gravatar.com/avatar/237ff98c98e71b509c4dac62b31efaf7823cca011952ded67579a6cf763b7a47?d=identicon)[moritz-sauer-13](/maintainers/moritz-sauer-13)

---

Top Contributors

[![moritz-sauer-13](https://avatars.githubusercontent.com/u/43135946?v=4)](https://github.com/moritz-sauer-13 "moritz-sauer-13 (5 commits)")

### Embed Badge

![Health badge](/badges/moritz-sauer-13-silverstripe-templated-emails/health.svg)

```
[![Health](https://phpackages.com/badges/moritz-sauer-13-silverstripe-templated-emails/health.svg)](https://phpackages.com/packages/moritz-sauer-13-silverstripe-templated-emails)
```

###  Alternatives

[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3861.2M](/packages/limenius-react-bundle)[benmanu/silverstripe-simple-styleguide

Provides a kitchen sink template useful for theme development.

1245.0k](/packages/benmanu-silverstripe-simple-styleguide)[area17/laravel-auto-head-tags

Laravel Auto Head Tags helps you build the list of head elements for your app

4616.0k](/packages/area17-laravel-auto-head-tags)[jelix/wikirenderer

WikiRenderer is a library to generate HTML or anything else from wiki content.

1712.2k1](/packages/jelix-wikirenderer)[webkinder/sproutset

A Composer package for handling responsive images in Roots Bedrock + Sage + Blade projects.

291.8k](/packages/webkinder-sproutset)

PHPackages © 2026

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