2017 © Pedro Peláez
 

symfony-bundle postman-bundle

Mail handling for Symfony 2

image

staffim/postman-bundle

Mail handling for Symfony 2

  • Tuesday, August 23, 2016
  • by megazoll
  • Repository
  • 5 Watchers
  • 1 Stars
  • 82 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

PostmanBundle Build Status

Goal

Foundation for mail handling (like Symfony's core HttpFoundation for HTTP)., (*1)

Installation

Require the staffim/postman-bundle package in your composer.json and update your dependencies., (*2)

$ composer require staffim/postman-bundle:*

Add the PostmanBundle to your application's kernel:, (*3)

    public function registerBundles()
    {
        $bundles = array(
            ...
            new Postman\PostmanBundle\PostmanBundle(),
            ...
        );
        ...
    }

Usage

Define pipelining mail from your MTA to Symfony's console command. In Exim 4 this may be done by router, (*4)

# /etc/exim4/conf.d/router/postman
postman:
    debug_print = "R: postman for $local_part@$domain"
    driver      = accept
    transport   = postman_pipe

and transport, (*5)

# /etc/exim4/conf.d/transport/postman
postman_pipe:
    debug_print = "T: postman_pipe for $local_part@$domain"
    driver      = pipe

    return_fail_output
    # Failure to exec is treated specially, and causes the message to be frozen.
    freeze_exec_fail

    path    = "/bin:/usr/bin:/usr/local/bin"
    command = "/usr/bin/php /var/www/app/app/console -e=prod postman:mail:handle"
    user    = www-data
    group   = www-data
    umask   = 022

The Versions

23/08 2016

dev-master

9999999-dev http://github.com/staffim/PostmanBundle

Mail handling for Symfony 2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Semen Barabash

mail symfony