Download the PHP package sylvaindeloux/symfony-mailjet-transport without Composer
On this page you can find all versions of the php package sylvaindeloux/symfony-mailjet-transport. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download sylvaindeloux/symfony-mailjet-transport
More information about sylvaindeloux/symfony-mailjet-transport
Files in sylvaindeloux/symfony-mailjet-transport
Download sylvaindeloux/symfony-mailjet-transport
More information about sylvaindeloux/symfony-mailjet-transport
Files in sylvaindeloux/symfony-mailjet-transport
Vendor sylvaindeloux
Package symfony-mailjet-transport
Short Description Mailjet transport for Symfony Mailer component.
License MIT
Homepage https://github.com/sylvaindeloux/symfony-mailjet-transport
Package symfony-mailjet-transport
Short Description Mailjet transport for Symfony Mailer component.
License MIT
Homepage https://github.com/sylvaindeloux/symfony-mailjet-transport
Please rate this library. Is it a good library?
Informations about the package symfony-mailjet-transport
Mailjet Transport for Symfony Mailer Component
Deprecated repository
Since Mailjet has been added by Symfony team to symfony/mailjet-mailer
, this bundle will not evolve.
Installation
Install the bundle:
composer require sylvaindeloux/symfony-mailjet-transport
Add it to config/bundles.php
:
<?php
return [
// ...
SylvainDeloux\MailjetTransport\MailjetTransportBundle::class => ['all' => true],
];
Now you can use your Mailjet account with Symfony Mailer. You just need to configure the MAILER_DSN
environment variable with your credentials:
- SMTP:
mailjet+smtp://<your api key>:<your api secret>@in-v3.mailjet.com
- API:
mailjet+api://<your api key>:<your api secret>@api.mailjet.com?version=3.1
Use Mailjet templates with variables
If you want to use a custom template instead of a Twig HTML / text body, and inject your own variables:
$email = (new \SylvainDeloux\MailjetTransport\Mailer\Email())
// ...
->setTemplateId(<your template id>)
->setErrorReportingEmail(<your email address for debugging>) // optional, to get a detailled message if template error occurs
->setTemplateErrorDeliver() // optional, if you want the mail to be delivered if template error occurs
->setVariables(array(
'key' => 'value',
))
;
All versions of symfony-mailjet-transport with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.1||^8.0
symfony/http-client Version ^4.4||^5.0||^6.0
symfony/mailer Version ^4.4||^5.0||^6.0
symfony/http-client Version ^4.4||^5.0||^6.0
symfony/mailer Version ^4.4||^5.0||^6.0
The package sylvaindeloux/symfony-mailjet-transport contains the following files
Loading the files please wait ....