flowmailer / m2connector
Flowmailer Connector for Magento 2
Package info
github.com/flowmailer/m2connector
Type:magento2-module
pkg:composer/flowmailer/m2connector
Requires
- php: ^7.4 || ^8.0
- flowmailer/flowmailer-php-sdk-implementation: ^1.0 || ^2.0
Requires (Dev)
- ergebnis/composer-normalize: ^2.23
- flowmailer/flowmailer-php74-sdk: ^1.0
- friendsofphp/php-cs-fixer: ^3.4
- icanhazstring/composer-unused: ^0.7.12
- maglnet/composer-require-checker: ^3.8
- nyholm/psr7: ^1.5
- phpstan/phpstan: ^1.3
- phpunit/phpunit: ^9.5
- rector/rector: ^0.12.10
- symfony/http-client: ^5.4 || ^6.0
README
This extension allows you to configure Magento 2 to send all emails using Flowmailer including raw data.
See flowmailer.com for more information.
Compatibility
| Module version | Magento / Adobe Commerce | PHP |
|---|---|---|
^2.2 |
2.4.7, 2.4.8 (+ patches) | 8.1, 8.2, 8.3, 8.4 |
^2.1 |
2.4.4 – 2.4.8 | 7.4, 8.0, 8.1, 8.2 |
^1.0 |
2.3, 2.4 (< 2.4.4) | 7.3, 7.4, 8.0 |
Magento 2.4.8 removed the laminas/laminas-mail dependency. Module versions < 2.2 therefore
fail at runtime on 2.4.8 with Class "Laminas\Mail\Message" not found. Upgrade to ^2.2.
Installation
A normal installation would be something equal to:
composer require flowmailer/flowmailer-php-sdk flowmailer/m2connector symfony/http-client nyholm/psr7
Choose your preferred flowmailer-php-sdk implementations on packagist, based on your minimum requirement for PHP.
Choose your preferred client implementations on packagist.
See docs.php-http.org for details on the HttpClient discovery.
Enable the module:
bin/magento module:enable Flowmailer_M2Connector --clear-static-content bin/magento setup:upgrade bin/magento setup:di:compile bin/magento module:status Flowmailer_M2Connector bin/magento cache:clean
Configuration
Obtain credentials from Flowmailer credentials wizard
Go to http://your-magento-store/admin and login with your admin credentials.
Navigate to Stores > Configuration > Flowmailer > Connector and add API Credentials.
Upgrading to 2.2.x
The 2.2 release removes the hard dependency on laminas/laminas-mail, which was
removed from Magento core in 2.4.8. The plugin now consumes Magento's own
Magento\Framework\Mail\MessageInterface directly. Existing template-variable
handling and admin configuration are unchanged.
After upgrade run:
composer update flowmailer/m2connector flowmailer/flowmailer-php-sdk bin/magento setup:upgrade bin/magento setup:di:compile bin/magento cache:flush
Development
Static analysis uses the official PHPStan bridge for Magento.
composer install composer analyse
See phpstan.neon for the configured rule level.