Download the PHP package schvoy/mail-template-bundle without Composer
On this page you can find all versions of the php package schvoy/mail-template-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download schvoy/mail-template-bundle
More information about schvoy/mail-template-bundle
Files in schvoy/mail-template-bundle
Package mail-template-bundle
Short Description Mail template bundle is help to build emails easily.
License MIT
Informations about the package mail-template-bundle
Mail template bundle
Mail template bundle helps to build and send emails from different source (Twig or Database).
Installation
Install via composer
Register templates in twig configuration
Define the required environment variables
- MAILER_SENDER_ADDRESS
- MAILER_SENDER_NAME
- MAILER_SIGNATORY
Usage
Twig based emails
Basically if you are using Twig based emails, the bundle will use a default email template (email_base_template
).
You need to define only subject
and body
parameters.
These can be texts or translation keys.
If you use custom email template (override: email_base_template
configuration) you can add more parameters to your MailType(s),
and these parameters will be reachable in your template.
Parameters have to have public access or a public method to reach it
Creating new twig based mail type
Sending an email
Default email (template) parameters
Configuration reference
Not supported yet - TODO
- Database based mail types
- CC and BCC
- Attachment for mails
All versions of mail-template-bundle with dependencies
symfony/framework-bundle Version ^7.1
symfony/translation Version ^7.1
symfony/twig-bundle Version ^7.1
tijsverkoyen/css-to-inline-styles Version ^2.2.7
symfony/mailer Version ^7.1
schvoy/base-entity-bundle Version ^1.0.0
twig/twig Version ^3.0