mailjet / mailjet-magento2
Connect Mailjet with Magento
Installs: 21 607
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 5
Forks: 5
Open Issues: 1
Type:magento2-module
Requires
This package is not auto-updated.
Last update: 2024-12-11 04:38:15 UTC
README
The official Mailjet plugin for Magento 2
Installation instructions
- Back up your database (optional) - if you want to be sure that no undesired changes would occur
- Set up your cron jobs -
https://devdocs.magento.com/guides/v2.4/config-guide/cli/config-cli-subcommands-cron.html - Login into SSH and navigate to your store root directory
- Enable maintenance mode:
php bin/magento maintenance:enable
- You can upload your module’s files via FTP or with composer:
- FTP
- Download your module archive from your Magento store purchases
- Connect to your hosting server with Filezilla or another FTP client
- Navigate to
your_store_root_directory/app/code
- Inside create a folder “Mailjet” and enter it
- Inside of the “Mailjet” folder create a new folder “Mailjet” and enter it
- Extract the files on your local PC
- Upload the module’s files to the opened directory on the FTP client
- Go to your CLI and download the Mailjet library
composer require mailjet/mailjet-apiv3-php
- Composer
- Update the composer.json file in your Magento project with the name of the extension
- Add the extension’s name and version to your composer.json file and download the needed packages:
composer require mailjet/mailjet-magento2 --no-update composer update mailjet/mailjet-magento2
- Enter your authentication keys. Your public key is your username; your private key is your password
- To get them, go to Magento Marketplace > Your name > My Profile
- Click Access Keys in the Marketplace tab
- If you don’t have Access Keys click Create a New Access Key. Enter a specific name for the keys (e.g., the name of the developer receiving the keys) and click OK
- New public and private keys are now associated with your account that you can click to copy. Save this information or keep the page open when working with your Magento project. Use the Public key as your username and the Private key as your password
- Wait for Composer to finish updating your project dependencies and make sure there aren’t any errors
- FTP
- Verify the extension
- To verify that the extension installed properly, run the following command:
php bin/magento module:status Mailjet_Mailjet
- By default, the extension is probably disabled:
Module is disabled
- To verify that the extension installed properly, run the following command:
- Enable the extension
- Enable the extension and clear static view files:
php bin/magento module:enable Mailjet_Mailjet --clear-static-content
- Register the extension:
php bin/magento setup:upgrade
- Recompile your Magento project: in Production mode, you may receive a message to “Please rerun Magento compile command”. Magento does not prompt you to run the compile command in Developer mode:
php bin/magento setup:di:compile
- Verify that the extension is enabled:
php bin/magento module:status Mailjet_Mailjet
You should see output verifying that the extension is no longer disabled:Module is enabled
- Clean the cache:
php bin/magento cache:clean
- Disable maintenance mode:
php bin/magento maintenance:disable
- Configure the extension in Admin as needed: go to Admin panel > Stores > Configuration > Mailjet
- Disable maintenance mode:
- Enable the extension and clear static view files:
Note: You need to have a mailjet account to set your API settings.