swissup / module-email
Magento2 email providers integration (smtp, mandrill, amazon ses)
Installs: 7 445
Dependents: 1
Suggesters: 0
Security: 0
Stars: 11
Watchers: 9
Forks: 6
Open Issues: 0
Type:magento2-module
Requires
- laminas/laminas-mail: ^2.9.0
- laminas/laminas-mime: ^2.5.0
- magento/framework: ^102.0.5|^103.0
- magento/module-backend: ^101.0|^102.0
- magento/module-config: ^101.1
- magento/module-email: ^101.0
- magento/module-store: ^101.0
- magento/module-ui: ^101.1
- psr/log: *
Requires (Dev)
- aws/aws-sdk-php-zf2: >=1.0.1
- slm/mail: ~1.5
Suggests
- aws/aws-sdk-php-zf2: If you need to use Amazon SES (composer require aws/aws-sdk-php-zf2:>=1.0.1)
- slm/mail: If you need to use Mandrill or Amazon SES (composer require slm/mail:~1.5)
This package is auto-updated.
Last update: 2024-04-10 06:52:51 UTC
README
Magento2 module for email providers integration.
Following email services are supported:
- Amazon SES
- Gmail
- Mandrill
- Sendmail
- Manual SMTP settings
Installation
Run the following commands:
cd <magento_root> composer require swissup/module-email bin/magento module:enable Swissup_Email bin/magento setup:upgrade bin/magento setup:di:compile
Usage
- Navigate to "Marketing → Communications → Email Services"
- Press "Add New" button
- Create service
- Navigate "Stores → Configurations → Advanced → System → Mail Sending Settings"
- Select new service in the "Default Transport Email Service" drop-down
- Save
Logging
- Navigate "Stores → Configurations → Advanced → System → Mail Sending Settings"
- "Logging Enable" set Yes
- Navigate to "Marketing → Communications → Email Logs"
Using MailHog via Docker for testing email
I recently needed to modify the emails that a client project sends out. It was set up to send via SMTP and so the easiest way to do this for me was to add a local MailHog instance and point the application at it.
Manually running via Docker The quickest and easiest way to do this is via Docker.
Manually, we can do:
$ docker run -p 8025:8025 -p 1025:1025 mailhog/mailhog
This will run MailHog with the SMTP port exposed on localhost port 1025 and the web interface on 8025.
Now you can configure the app’s SMTP config and away you go.
Option | Value |
---|---|
Type | Smtp |
Host | 0.0.0.0 or mailhog |
Port | 1025 |
Auth Type | None |
Secure | None |