Download the PHP package happyr/mailer-bundle without Composer
On this page you can find all versions of the php package happyr/mailer-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download happyr/mailer-bundle
More information about happyr/mailer-bundle
Files in happyr/mailer-bundle
Package mailer-bundle
Short Description Happyr MailerBundle lets you send nice HTML emails. Use a twig template to design your emails. You may even use attachments.
License MIT
Homepage http://developer.happyr.com/symfony2-bundles/happyr-mailer-bundle
Informations about the package mailer-bundle
Happyr Mailer Bundle
Happyr Mailer Bundle makes it easier to send HTML emails with your Symfony2 application. This bundle supports template rendering and sending attachments.
Installation
Step 1: Using Composer
Install it with Composer!
Step 2: Register the bundle
To register the bundles with your kernel:
Step 3: Configure the bundle
You find a the full configuration reference here.
Usage
Attachments: If you want to send attachments you need to add them the the parameters array.
Message headers: You can add extra headers on the message if you like
Send emails from Symfony command
If you want to send emails from a Symfony2 command you are often getting errors like:
or
The error occur because you don't have access to a Request object. This bundle help you to fake a Request object. You need to change some config:
If a request object does not exists we will help you to create it.
Changelog
1.3.0 It is not possible to send emails from a console command without getting errors like: "You cannot create a service ("request") of an inactive scope ("request")."
1.2.0 You will no logner get exceptions from switft. If you want to catch exceptions use Happyr\MailerBundle\Exceptions\MailException.
You may now choose how error are handeled by using the error_tyoe config.
All versions of mailer-bundle with dependencies
twig/twig Version ^2.4.8
swiftmailer/swiftmailer Version ^5.4 || ^6.0
symfony/yaml Version ^3.4 || ^4.0
symfony/http-foundation Version ^3.4 || ^4.0
symfony/translation Version ^3.4 || ^4.0