PHP code example of 25th / zf2-exception-mailer-module

1. Go to this page and download the library: Download 25th/zf2-exception-mailer-module library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

25th / zf2-exception-mailer-module example snippets



return array(
	// Exception Stuff
	'exception_mailer' => array(
		// Mail
		'send' => true,
		'sender' => '[email protected]',
		'recipients' => array(
			'[email protected]',
		),
		'subject' => 'My Exception Mailer',
		'exceptionInSubject' => false

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


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