2017 © Pedro Peláez
 

library zf2-exception-mailer-module

Zend Framework 2 Module that provides a Simple Exception Mailer functionality

image

25th/zf2-exception-mailer-module

Zend Framework 2 Module that provides a Simple Exception Mailer functionality

  • Tuesday, June 12, 2018
  • by dready
  • Repository
  • 7 Watchers
  • 1 Stars
  • 1,901 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 6 Versions
  • 5 % Grown

The README.md

ZendFramework 2 Exception Mailer Module

A simple ZF2 Module for sending Mails if Exceptions happen on production systems. In it's simplest configuration it just sends the stack trace of the Exception. But you can also render views and send html mails instead., (*1)

Installation

Installation of this module uses composer. For composer documentation, please refer to getcomposer.org., (*2)

php composer.phar require 25th/zf2-exception-mailer-module
# (When asked for a version, type `0.*`)

Then add ExceptionMailer to your config/application.config.php., (*3)

Installation without composer is not officially supported and requires you to manually install all dependencies that are listed in composer.json, (*4)

Configuration

To configure the Mailer use your application config:, (*5)

<?php
return array(
    // Exception Stuff
    'exception_mailer' => array(
        // Mail
        'send' => true,
        'sender' => 'your-sender-address@mail.com',
        'recipients' => array(
            'your-recipient-address@mail.com',
        ),
        'subject' => 'My Exception Mailer',
        'exceptionInSubject' => false

        // HTML Templates
        'useTemplate' => false,
        'template' => 'error/index'
    ),
);

Ignore Exceptions

It's also possible to ignore certain Exceptions. Just let them implement the IgnoreExceptionInterface and they will be ignored., (*6)

HTML Emails

For HTML Emails set useTemplate to true and use the template parameter for your template configuration., (*7)

If you want to use a different template f.e. "error/mail" you also have to define it in the view_manager => template_map array with the correct position to it, (*8)

<?php
return array(
    ...
    'view_manager' => array(
        'template_map'        => array(
            ...
            'error/mail'              => __DIR__ . '/../view/error/mail.phtml', // Exception_Mailer
            ...
        ),
    ),
    ...
);

The Versions

12/06 2018

dev-master

9999999-dev http://www.25th-floor.com/

Zend Framework 2 Module that provides a Simple Exception Mailer functionality

  Sources   Download

The Requires

 

by Thomas Subera

zf2 mailer module exception

12/06 2018

0.1.3

0.1.3.0 http://www.25th-floor.com/

Zend Framework 2 Module that provides a Simple Exception Mailer functionality

  Sources   Download

The Requires

 

by Thomas Subera

zf2 mailer module exception

12/06 2018

dev-improvement/1276

dev-improvement/1276 http://www.25th-floor.com/

Zend Framework 2 Module that provides a Simple Exception Mailer functionality

  Sources   Download

The Requires

 

by Thomas Subera

zf2 mailer module exception

16/12 2015

0.1.2

0.1.2.0 http://www.25th-floor.com/

Zend Framework 2 Module that provides a Simple Exception Mailer functionality

  Sources   Download

The Requires

 

by Thomas Subera

zf2 mailer module exception

04/05 2013

0.1.1

0.1.1.0 http://www.25th-floor.com/

Zend Framework 2 Module that provides a Simple Exception Mailer functionality

  Sources   Download

The Requires

 

by Thomas Subera

zf2 mailer module exception

03/05 2013

0.1

0.1.0.0 http://www.25th-floor.com/

Zend Framework 2 Module that provides a Simple Exception Mailer functionality

  Sources   Download

The Requires

 

by Thomas Subera

zf2 mailer module exception