edit

Configuration

Full configuration

'mailjet' => [
    'key' => env('MAILJET_APIKEY'),
    'secret' => env('MAILJET_APISECRET'),
    'transactional' => [
        'call' => true,
        'options' => [
            'url' => 'api.mailjet.com',
            'version' => 'v3.1',
            'call' => true,
            'secured' => true
        ]
    ],
    'common' => [
        'call' => true,
        'options' => [
            'url' => 'api.mailjet.com',
            'version' => 'v3',
            'call' => true,
            'secured' => true
        ]
    ]
]
You can pass settings to MailjetClient.

  • transactional: settings for Send API
  • common: setting to MailjetClient accessible through the Facade Mailjet.
  • url (Default: api.mailjet.com): domain name of the API
  • version (Default: v3): Mailjet API version (only working for Mailjet API v3)
  • call (Default: true): Toggle if the API call is actually performed or mocked
  • secured (Default: true): Toggle the usage of 'https'

Mail driver configuration

In order to use Mailjet as your Mail driver, you need to update the mail driver in your config/mail.php or your .env file to MAIL_DRIVER=mailjet, and make sure you are using a valid and authorised from email address configured on your Mailjet account. The sending email addresses and domain can be managed here

For usage, check the Laravel mail documentation