2017 © Pedro Peláez
 

library filemailer

Addon for catching e-mails in Nette FW to filesystem and showing it in the Debug Bar.

image

rm/filemailer

Addon for catching e-mails in Nette FW to filesystem and showing it in the Debug Bar.

  • Tuesday, December 1, 2015
  • by romanmatyus
  • Repository
  • 4 Watchers
  • 7 Stars
  • 1,216 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 6 Versions
  • 5 % Grown

The README.md

FileMailer

E-mails catching addon for Nette Framework. Emails are stored into files and shown in Tracy bar., (*1)

!WARNING! - After setting up this addon, all e-mails are not sent, but ONLY stored on filesystem and shown in Tracy bar., (*2)

Demo, (*3)

Killer features

  • Simple instalation
  • Extensive configuration options
  • Full access to headers
  • Plain text and HTML output
  • Possibility to download the attachments
  • Parser caching

Installation

Add package to your project by the Composer:, (*4)

composer require rm/filemailer

or download addon manually from GitHub and unpack it in place indexed by RobotLoader., (*5)

Configuration

The addon consists of two parts. The first one is the FileMailer which replaces the IMailer service and stores e-mails to filesystem. The second one is the MailPanel which is the Tracy bar panel and shows e-mails stored by FileMailer., (*6)

Default options are used in following examples., (*7)

Setup by extension

Register new compiler extension in config.neon and optionally configure:, (*8)

extensions:
    mailer: RM\MailPanel\DI\MailPanelExtension

mailer:
    newMessageTime: '-2 seconds'    # how long consider email as new
    show: [subject, from, to]       # which headers show in overview
    autoremove: '-5 seconds'        # how old emails are purged
    hideEmpty: yes                  # hide bar icon when no emails?
    debugger: yes                   # enable Tracy bar
    tempDir: '%tempDir/mails'       # change e-mails store directory

Manual setup

Replace the Nette's default IMailer service and register Tracy bar panel:, (*9)

services:
    mail.mailer: RM\FileMailer(%tempDir%/mails)

    mailerPanel:
        class: RM\MailPanel
        autowired: no
        setup:
            - setFileMailer(@mail.mailer)   # required
            - $newMessageTime('-5 seconds')
            - $show([subject, from, to])
            - $autoremove('-5 seconds')
            - $hideEmpty(yes)

tracy:
    bar:
        - @mailerPanel

The Versions

01/12 2015

0.2.x-dev

0.2.9999999.9999999-dev https://github.com/romanmatyus/FileMailer

Addon for catching e-mails in Nette FW to filesystem and showing it in the Debug Bar.

  Sources   Download

MIT

The Requires

 

mail mailer nette debugbar debuging

01/12 2015

0.2.1

0.2.1.0 https://github.com/romanmatyus/FileMailer

Addon for catching e-mails in Nette FW to filesystem and showing it in the Debug Bar.

  Sources   Download

MIT

The Requires

 

mail mailer nette debugbar debuging

16/07 2015

dev-master

9999999-dev https://github.com/romanmatyus/FileMailer

Addon for catching e-mails in Nette FW to filesystem and showing it in the Debug Bar.

  Sources   Download

MIT

The Requires

 

mail mailer nette debugbar debuging

12/05 2015

0.3.2

0.3.2.0 https://github.com/romanmatyus/FileMailer

Addon for catching e-mails in Nette FW to filesystem and showing it in the Debug Bar.

  Sources   Download

MIT

The Requires

 

mail mailer nette debugbar debuging

12/05 2015

0.3

0.3.0.0 https://github.com/romanmatyus/FileMailer

Addon for catching e-mails in Nette FW to filesystem and showing it in the Debug Bar.

  Sources   Download

MIT

The Requires

 

mail mailer nette debugbar debuging

18/11 2013

0.2

0.2.0.0 https://github.com/romanmatyus/FileMailer

Addon for catching e-mails in Nette FW to filesystem and showing it in the Debug Bar.

  Sources   Download

MIT

The Requires

 

mail mailer nette debugbar debuging