2017 © Pedro Peláez
 

library mail

email services provider on top of zendframework 2

image

unjudder/mail

email services provider on top of zendframework 2

  • Friday, November 1, 2013
  • by alrik
  • Repository
  • 6 Watchers
  • 20 Stars
  • 1,144 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 12 Forks
  • 3 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

unjudder/mail

Email Module for Zendframework 2., (*1)

# Uj\Mail
Version 1.0-alpha2
Authors
  • Alrik Zachert

License | [BSD-3-Clause](https://github.com/unjudder/zf2-mail/blob/master/LICENSE.md License), (*2)

Overview

In most business applications you have to send many, different emails to your customers. On top of the zendframwork we provide an easy to use, config aware email - service module., (*3)

Features

  • Provide configurable core services (transport, renderer, email)
  • Render emails from templates
  • Easy to use api
$serviceLocator->get('Uj\Mail\Email')
    ->send('module/nameOfEmailTpl', array(
        'to' => 'customer@domain.tld',
        'from' => 'service@your-service.tld',
        'subject' => 'What ever - Our Customer Services',
        // ... additional parameters to pass to view renderer
    ));

Installation

The easiest way to install unjudder/mail is by using composer., (*4)

  • Add the following lines to your composer.json
"require": {
    "unjudder/mail": "1.0-alpha2"
}
  • Load the zf2 module, edit your config/application.config.php file:
'modules' => array(
    'Uj\Mail'
)

Usage

Configuration

The config is located in the nested config namespace, (*5)

$config['uj']['mail'];

Uj\Mail\Transport

Key Type Description
type string Transport class, lookup in \Zend\Mail\Transport\*. It must implement \Zend\Mail\Transport\TransportInterface.
options array A list of options that will be passed to the transport options instance.

To do

  • Improve the docs.
  • Add controller plugin
  • Add signature support
  • Add (more) template storage adapters, eg. database
  • Set Subject from within email template
  • Add attachments/mime parts from within email template
  • Add default email parameters (to, sender, ...)
  • Message Queue/Cli Tool for sending many mails in background

License

The files in this project are released under the unjudder license. Please find a copy of this license bundled with this package in the file LICENSE.md. Our License is also available through the web at: http://unjudder.com/license/new-bsd., (*6)

The Versions

01/11 2013

dev-master

9999999-dev http://github.com/unjudder/zf2-mail

email services provider on top of zendframework 2

  Sources   Download

BSD-3-Clause

The Requires

 

by Alrik Zachert

email zf2 transport

01/11 2013

1.0-alpha2

1.0.0.0-alpha2 http://github.com/unjudder/zf2-mail

email services provider on top of zendframework 2

  Sources   Download

BSD-3-Clause

The Requires

 

by Alrik Zachert

email zf2 transport