Mailjet APIv3 module for Drupal
This module for Drupal 7.x. provides complete control of Drupal Email settings with Mailjet and also adds specific Drupal Commerce email marketing functionality such as triggered marketing emails and marketing campaign revenue statistics.
The Mailjet Module for Drupal 7.x configures your default Drupal SMTP settings to use Mailjet's SMTP relay with enhanced deliverability and tracking. The module also provides the ability to synchronise your Drupal opt-in contacts and send bulk and targeted emails to them with real time statistics including opens, clicks, geography, average time to click, unsubs, etc.
Mailjet is a powerful all-in-one email service provider used to get maximum insight and deliverability results from both marketing and transactional emails. Our analytics tools and intelligent APIs give senders the best understanding of how to maximize benefits for each individual contact and campaign email after email.
- Views (https://www.drupal.org/project/views)
- Views Bulk Operations (https://www.drupal.org/project/views_bulk_operations)
- Entity (https://www.drupal.org/project/entity)
- Chaos tool suite (ctools) (https://www.drupal.org/project/ctools)
The following modules are not strictly required but it is nice to install them to get the full capability of the Mailjet features.
- commerce (https://www.drupal.org/project/commerce) For the stats sub module to enable the ROI feature install:
- views_date_format_sql (https://www.drupal.org/project/views_date_format_sql)
- charts (https://www.drupal.org/project/charts) For the list module you need to install:
- viewfield (https://www.drupal.org/project/viewfield)
The Mailjet plugin relies on the PHPMailer v5.2.21 for sending emails.
To install PHPMailer via composer use:
composer require phpmailer/phpmailer=~5.2
To install PHPMailer manually:
- Get the PHPMailer v5.2.22 from GitHub here: http://github.com/PHPMailer/PHPMailer/archive/v5.2.22.zip
- Extract the archive and rename the folder "PHPMailer-5.2.22" to "phpmailer".
- Upload the "phpmailer" folder to your server inside DRUPAL_ROOT/sites/all/libraries/.
- Verify that the file class.phpmailer.php is correctly located at this path: DRUPAL_ROOT/sites/all/libraries/phpmailer/class.phpmailer.php
- Note: Libraries API can be used to move the library to an alternative location, if needed, e.g. for use in a distribution.
- Download the latest release from https://www.drupal.org/project/mailjet.
- Upload the module in your Drupal sites/all/modules/ directory.
- Log in as administrator in Drupal.
- Enable the Mailjet settings module on the Administration > Modules page.
- Fill in required settings on the Administration > Configuration > Mailjet settings page.
- You will be required to enter API key and Secret Key from your Mailjet account. If you do not have an account yet, please create one.
- The site can be set up to use the Mailjet module as an email gateway, this can be easily configured, by clicking on the Settings tab => your_site/admin/config/system/mailjet, and then selecting the checkbox on the top, "Send emails through Mailjet", click "Save Settings" button on the bottom of the page. You can test that feature by sending a test email, just click the button on the top of the page "Send test email" in Settings tab.
- If you want to enable the Campaign feature, you should enable the mailjet_campaign module, you can do that from Administration > Site building > Modules page (your_site/admin/modules)
- Enabling the campaign sub module will create additional menu item in your administration menu, the new menu is called "Campaign" (your_site/admin/mailjet/campaign).
- Clicking this menu item will display all the campaigns created by the administrator, from this point you will be able to create new campaigns as well, the same way you do that on app.mailjet.com.
- If you want to create a campaign simply go to the Campaigns page => your_site/admin/mailjet/campaign
- If you enable the stats module 2 menu items will appear Dashboard where you can see the results of the mail campaigns and the Mailjet ROI stats, clicking the ROI stats you can see the actual conversion of your campaigns. This feature will display a view which will present the campaign name, number of orders made by users who clicked on the link of your site in your email campaign.
- My account menu item will redirect you to the Mailjet logging page.
- Upgrade menu link will redirect you to the pricing list of Mailjet where you can pick up a plan and upgrade your account.
- The contacts menu item allows you to create lists that can be used for your campaigns. New lists can be created and contacts can be import in several ways: Upload from CSV, Copy/Paste from Excel, Copy/Paste from TXT, CSV, RTF.
- If you want to enable the trigger_examples sub-module you need to enable the views_bulk_operations module and apply the following patch to it: https://www.drupal.org/files/issues/views-vbo-patch-anon-users.patch
Mailjet SAS [email protected]
- Fix Drupal account custom fields sync to Mailjet
- Add possibility to sync custom profile fields along with the user's
name
either on initial and single contact sync
- Bugfixes and internal improvements regarding single contact sync
- Bugfixes and internal improvements regarding contacts sync, subscription and unsibscription of contacts
- Updated texts and translations
- Fix issue when Stats module enabled and Campaign module disabled
- Fix "Send emails through Mailjet" unchecked overrides non-default Mail system
- Fix redirecting regular users to the Mailjet Settings
- Add config setting for user property syncing
- Fix subscription form issue
- Fix an issue if campaings module is not installed
- Update the tracking parameter
- New feature: added creation of a subscription block
- Various bugfixes and improvements
- Bug fix: The callback parameter is temporarily removed
- Bug fix: Messages improved
- Bug fix: Validate add domain field
- Bug fix: Unable to synchronize a new user if the Drupal contact list already exists
- Bug fix: Unable to send more than 1 mail per request when using Libraries API in a non default directory https://www.drupal.org/node/2853496
- Feature: Support autoload for PHPMailer https://www.drupal.org/node/2850791
- Bug fix: Fatal error with plugin https://www.drupal.org/node/2753095
- Bug fix: Error when user profile is associated with entity_reference field https://www.drupal.org/node/2491389
- Bug fix: Module breaks site login https://www.drupal.org/node/2491395 https://www.drupal.org/node/2598060
- Bug fix: Call to undefined function mailjet_campaign_access() https://www.drupal.org/node/2597309
- Feature: Add ability to disable user information syncing https://www.drupal.org/node/2663328
- Bug fix: https://www.drupal.org/node/2842760
- Feature: update PHPmailer library https://www.drupal.org/node/2842760
- Bug fixes
- Mailjet event URL is now public Fixed URL path to avoid Drupal redirect
- Added tracking information
- Added iFrame parameter to show/hide sending policy
- Bug fixes
- Bug fix: not able to display the trusted domain form https://www.drupal.org/node/2456715
- First release of the new version of the Mailjet module