Skip to content

Sending emails via Mailjet in batches via API, and callback handling used for bounce management.

License

Notifications You must be signed in to change notification settings

Leuchtfeuer/mautic-MailjetAdapter-bundle

Repository files navigation

Mailjet Adapter by Leuchtfeuer

CONTENTS OF THIS FILE

  • Introduction
  • Installation
  • Configuration
  • Author

INTRODUCTION

This plugin enable Mautic 5 to run Mailjet as a email transport.

INSTALLATION

  1. Get the plugin using composer require leuchtfeuer/mautic-mailjetadapter-bundle
  2. Install it using php bin\console mautic:plugins:reload.
  3. The plugin will start listing on plugin page. Plugins Page

CONFIGURATION

Mautic

This plugin provide two transports,

  1. SMTP Relay: The best and fastest way to use the SMTP Relay is to have your own local mail server relaying messages to the Mailjet SMTP.
  2. Email API: The Mailjet API is organized around REST. For more visit Send API v3.1.
DSN (Data Source Name)
SMTP Relay 'mailer_dsn' => 'mautic+mailjet+smtp:https://<apiKey>:<secretKey>@default:465',
Email API 'mailer_dsn' => 'mautic+mailjet+api:https://<apiKey>:<secretKey>@default:465?sandbox=1',

Follow the steps to set up Mailjet DSN,

  1. Navigate to Configuration (/s/config/edit>)
  2. Scroll to Email Settings
  3. Update the following fields leaving rest default or empty,
Field Value
Scheme mautic+mailjet+smtp or mautic+mailjet+api
Host default
Port 465
User <apiKey>
Password <secretKey>

The <apiKey> and <secretKey> will be used for authentication purposes. Please visit the Mailjet Guide

On the Configuration page Email DSN should look like Email DSN

Mailjet

  1. Create a Mailjet account
  2. Then retrieve your API and Secret keys. They will be used for authentication purposes.
  3. Set up the webhook hook for event tracking from your account preferences, in the Event Tracking section. The webhook URL should be https://<your-domain.tld>/mailer/callback.

AUTHOR

👤 Rahul Shinde

About

Sending emails via Mailjet in batches via API, and callback handling used for bounce management.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages