Download the PHP package welp/mailjet-swiftmailer without Composer
On this page you can find all versions of the php package welp/mailjet-swiftmailer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download welp/mailjet-swiftmailer
More information about welp/mailjet-swiftmailer
Files in welp/mailjet-swiftmailer
Package mailjet-swiftmailer
Short Description A SwiftMailer transport implementation for Mailjet
License MIT
Homepage https://github.com/mailjet/MailjetSwiftMailer
Informations about the package mailjet-swiftmailer
MailjetSwiftMailer
A SwiftMailer transport implementation for Mailjet ([NEW] we now support send API v3.1 ) Mailjet Send API v3.1 Compatible Mailjet send API V3 and V3.1
If you found any problem, feel free to open an issue!
TODO
- Adding URL tags
- Sandbox Mode
- Improve unit-tests (lots of code duplications)
Installation
Require the package with composer
Usage Example
(Send API v3 is selected by default)
Mailjet client custom configuration
You can pass an array in transport's constructor or use setClientOptions
function:
Properties of $options:
- url (Default: api.mailjet.com) : domain name of the API
- version (Default: v3) : API version (only working for Mailjet API V3 +)
- call (Default: true) : turns on(true) / off the call to the API
- secured (Default: true) : turns on(true) / off the use of 'https'
Mailjet custom headers
It is possible to set specific Mailjet headers or custom user-defined headers, through SwiftMailer.
For example:
Note: You need to json_encode
your array of variables in order to be compatible with SMTP transport.
Mailjet bulk sending
Note: does not work with Spool (SwiftMailer removed bulkSend from its API).
Integration in Symfony
If you want to use MailjetTransport in your Symfony project follow these small steps:
composer require mailjet/mailjet-swiftmailer
- Into your
services.yml
, register MailjetTransport:
Note: We set mailjet.api_key
and mailjet.secret_key
into parameters.yml
- Finally, configure SwiftMailer in your
config.yml
:
Note: You can also inject your own Mailjet\Client
:
Mailjet references
- Mailjet PHP Wrapper
- Mailjet documentation v3: send transactional email
- Mailjet documentation v3.1: send transactional email
Execute Tests
Contributing
If you want to contribute to this project, look at over here
All versions of mailjet-swiftmailer with dependencies
mailjet/mailjet-apiv3-php Version ^1.2
swiftmailer/swiftmailer Version ~6.0