MailPanel is extension for Nette Framework which captures sent e-mails in development mode and shows them from debugger bar.

Installs: 1 735

Dependents: 3

Stars: 6

Watchers: 1

Open Issues: 1

3.2.1 2015-02-02 12:12 UTC


Panel for Nette Debug panel. Instead of sending, all e-mails are stored into session from which they can be viewed in debug bar. Supports plaintexts and HTML e-mail, multiple recipients etc.

  • Authors: Jan Marek, Jan Drábek
  • License: New BSD

Based on http://git.yavanna.cz/p/mailpanel/ by Jan Drábek and



Install library via composer:

composer require jandrabek/nette-mailpanel

Register different mailer in config.neon (or in something like config.development.neon)

    nette.mailer: JanDrabek\MailPanel\SessionMailer
        bar: [JanDrabek\MailPanel\MailPanel]
# Or when you register multiple extensions
#       bar:
#           - JanDrabek\MailPanel\MailPanel


class ExamplePresenter extends BasePresenter {

    private $mailer;

    public function injectMailer(Nette\Mail\IMailer $mailer) {
        $this->mailer = $mailer;

    public function renderDefault() {
        $mail = new Nette\Mail\Message;
        $mail->setBody('Message body');



Potential problems

Due to the method of populating mails into the iframe element with javascript, there can be some problems. When it happen, please, send me an e-mail or open an issue. Thanks :)