Download the PHP package m-adamski/symfony-mailer-bundle without Composer
On this page you can find all versions of the php package m-adamski/symfony-mailer-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download m-adamski/symfony-mailer-bundle
More information about m-adamski/symfony-mailer-bundle
Files in m-adamski/symfony-mailer-bundle
Package symfony-mailer-bundle
Short Description Bundle for Symfony which helps compose and send emails
License MIT
Informations about the package symfony-mailer-bundle
Mailer Bundle for Symfony
The package unifies the class nomenclature and adds new functionality to the existing SwiftMailer library. Using it, creating messages is more convenient and faster.
This bundle is compatible with Symfony 4.1 and Symfony 5.0. Symfony 3.4 compatibility abandoned.
Installation
This bundle can be installed by Composer:
How to use it?
The helper contains an additional function to create a message instance. With its help, you can also render the message content from the Twig template.
Method | Description |
---|---|
buildMessage | The function returns a message instance. It is possible to overwrite the class parameters later. |
renderTemplate | The function renders the message content from the given Twig template. |
sendMessage | The function sends a previously prepared message. The return value is the number of recipients to whom the message was sent. |
To simplify the creation of HTML messages, a function has been prepared in the MailerMessage
class that automatically defines the message as text/html
.
Method | Description |
---|---|
setHTMLBody | The function sets the class parameters to get a text/html message |
License
MIT
All versions of symfony-mailer-bundle with dependencies
symfony/framework-bundle Version ^4.1|^5.0
symfony/swiftmailer-bundle Version ^3.4
symfony/twig-bundle Version ^4.1|^5.0