PHPackages                             jdr/mailer - 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. jdr/mailer

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

jdr/mailer
==========

Build and send emails.

0.0.1(9y ago)1902MITPHPPHP ~7.0

Since Oct 8Pushed 9y ago1 watchersCompare

[ Source](https://github.com/johanderuijter/mailer)[ Packagist](https://packagist.org/packages/jdr/mailer)[ Docs](https://github.com/johanderuijter/mailer)[ RSS](/packages/jdr-mailer/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (2)Used By (2)

mailer
======

[](#mailer)

[![Latest Version on Packagist](https://camo.githubusercontent.com/ddd48d9845b115a0eaac0fc217c68a191181c2c5cbb377fe3a6e80d4a8bd2a6c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a64722f6d61696c65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jdr/mailer)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/088b8ff0c48bb8db0921f5e77438b5753b6e85c3a72a71433c452048f8dd63ca/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6a6f68616e64657275696a7465722f6d61696c65722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/johanderuijter/mailer)[![Coverage Status](https://camo.githubusercontent.com/7b8439f50f83600f27cec1fa280680656f7e7cbf39d1fe2e4470786784eea67e/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6a6f68616e64657275696a7465722f6d61696c65722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/johanderuijter/mailer/code-structure)[![Quality Score](https://camo.githubusercontent.com/d3e2a6dbff571393e071236c1e7a7cf6f6aa1579ad0eff20fb1fbd1ca573fa06/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6a6f68616e64657275696a7465722f6d61696c65722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/johanderuijter/mailer)[![Total Downloads](https://camo.githubusercontent.com/f8d40fdff339e6742eec3d68f9f0af206ab40b78733332261d5ec461aa8c9d66/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a64722f6d61696c65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jdr/mailer)

This package aims to simplify sending emails.

Emails are send with swift mailer though the [SwiftMailerBridge](https://github.com/johanderuijter/mailer-swift-mailer-bridge), however, you can implement your own if you want. As long as it implements the [Mailer](src/Mailer.php).

For now, using (twig) templates is only supported with the [MailerBundle](https://github.com/johanderuijter/mailer-bundle).

Install
-------

[](#install)

Via Composer

```
$ composer require jdr/mailer
```

Usage
-----

[](#usage)

```
