Download the PHP package rollerworks/mail-bundle without Composer
On this page you can find all versions of the php package rollerworks/mail-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rollerworks/mail-bundle
More information about rollerworks/mail-bundle
Files in rollerworks/mail-bundle
Package mail-bundle
Short Description Swiftmailer, Symfony2 Templating/Decorator Bundle
License MIT
Informations about the package mail-bundle
RollerworksMailBundle
This bundle provides Templating and Attachment Decorating for SwiftMailer with Symfony2
Template
The SwiftMailer template decorator, handles e-mail messages using the Symfony Templating Component.
AttachmentDecorator
The SwiftMailer attachment decorator is similar to the Template decorator, but instead it handles mail attachments.
Installation
Step 1: Using Composer (recommended)
To install RollerworksMailBundle with Composer just add the following to your
composer.json
file:
NOTE: Please replace master-dev
in the snippet above with the latest stable
branch, for example 1.0.*
.
Then, you can install the new dependencies by running Composer's update
command from the directory where your composer.json
file is located:
Now, Composer will automatically download all required files, and install them
for you. All that is left to do is to update your AppKernel.php
file, and
register the new bundle:
Step 1 (alternative): Using deps
file (Symfony 2.0.x)
First, checkout a copy of the code. Just add the following to the deps
file of your Symfony Standard Distribution:
NOTE: You can add version
tag in the snippet above with the latest stable
branch, for example version=origin/1.0
.
Then register the bundle with your kernel:
Make sure that you also register the namespace with the autoloader:
Now use the vendors
script to clone the newly added repositories
into your project:
Step3: Enable the bundle
Finally, enable the bundle in the kernel:
Congratulations! You're ready!
Basic Usage (Template decorator)
See http://swiftmailer.org/docs/plugins.html#decorator-plugin for more in-dept details.
When creating an new e-mail message add the following.
Basic Usage (Attachment decorator)
Note. This can be used in combination with the Template decorator.
Also see:
- http://swiftmailer.org/docs/plugins.html#decorator-plugin
- http://swiftmailer.org/docs/messages.html#attaching-files
For more in-dept detail.
When creating an new e-mail message add the following.
Replacements must be an array or implementation of \Swift_Plugins_Decorator_Replacements Each key is an e-mail address and the value an array with attachments. An attachment is either a \Swift_Attachment object or an array with the following keys and data:
Note: data must not be base64 encoded but provided as-is.