Download the PHP package hautzi/system-mail-bundle without Composer
On this page you can find all versions of the php package hautzi/system-mail-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hautzi/system-mail-bundle
More information about hautzi/system-mail-bundle
Files in hautzi/system-mail-bundle
Package system-mail-bundle
Short Description This Bundle provides a nice abstraction for sending system emails
License MIT
Homepage https://github.com/christoph-hautzinger/SystemMailBundle
Informations about the package system-mail-bundle
HautziSystemMailBundle
This bundle abstracts away sending system Messages. If instanciating a Swift_Message
instance in your controllers
seems fishy to you, this is probably what you are looking for.
This idea of this Bundle is to create some sort of XML configuration for each system mail to be sent (like "you have registered successfully, please activate your account" or "hey dude, you haven't been wasted your money on our platform for 10 days, please come back"), leveraging the power of twig.
Hey, why not looking in the code? It's kind of self-explanatory:
Then send out this mail explicitly by simply calling:
Installation
Step 1: Download the Bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Step 2: Enable the Bundle
Then, enable the bundle by adding the following line in the app/AppKernel.php
file of your project:
Configuration Options
Right now, you can provide default data
Examples
License
This bundle is under the MIT license. See the complete license in the LICENSE
file in the root dir of the bundle.
All versions of system-mail-bundle with dependencies
twig/twig Version ~2.0
symfony/http-kernel Version ~4.0|~5.0
symfony/swiftmailer-bundle Version ~3.0