PHPackages                             ride/lib-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. [Templating &amp; Views](/categories/templating)
4. /
5. ride/lib-mailer

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

ride/lib-mailer
===============

Library to offer editable templates for mails in the PHP Ride framework

1.1.0(2y ago)01.3k4MITPHP

Since Feb 22Pushed 2y ago1 watchersCompare

[ Source](https://github.com/all-ride/ride-lib-mailer)[ Packagist](https://packagist.org/packages/ride/lib-mailer)[ RSS](/packages/ride-lib-mailer/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelogDependencies (2)Versions (7)Used By (4)

Ride: Mailer Library
====================

[](#ride-mailer-library)

Library to offer editable templates for mails in the PHP Ride framework.

What's In This Library
----------------------

[](#whats-in-this-library)

### MailType

[](#mailtype)

The *MailType* interface specifies an available mail. It can be considered an event which is triggered when certain business logic occurs. They are defined by the system/developer. Eg. A user is registered; A user is activated; An inquiry is requested; ...

### MailTypeProvider

[](#mailtypeprovider)

The *MailTypeProvider* interface is used for the data storage of mail types. Use it to retrieve a single or all mail types.

### MailTemplate

[](#mailtemplate)

The *MailTemplate* interface represents a preset of an outgoing mail. Recipients and variables are defined by it and are replaced by the actual values when the mail is being send.

### MailTemplateProvider

[](#mailtemplateprovider)

The *MailTemplateProvider* interface is used for the data store of mail templates. Use it o retrieve a single or all mail templates.

### MailHandler

[](#mailhandler)

The *MailHandler* interface is responsible for filling in the variables and sending the mail.

### MailService

[](#mailservice)

The *MailService* class is a facade to this library. You can use this class to retrieve the providers or send a mail.

Code Sample
-----------

[](#code-sample)

Check the following code sample to some of the possibilities of this library.

```
