swissup / module-email
Magento2 email providers integration (smtp, mandrill, amazon ses)
Installs: 9 208
Dependents: 1
Suggesters: 0
Security: 0
Stars: 11
Watchers: 10
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: *
- swissup/module-oauth2-client: ^1.0.1
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)
- dev-master
- 0.6.3
- 0.6.2
- 0.6.1
- 0.6.0
- 0.5.12
- 0.5.11
- 0.5.10
- 0.5.9
- 0.5.8
- 0.5.7
- 0.5.6
- 0.5.5
- 0.5.4
- 0.5.3
- 0.5.2
- 0.5.1
- 0.5.0
- 0.4.0
- 0.3.21
- 0.3.20
- 0.3.19
- 0.3.18
- 0.3.17
- 0.3.16
- 0.3.15
- 0.3.14
- 0.3.13
- 0.3.12
- 0.3.11
- 0.3.10
- 0.3.9
- 0.3.8
- 0.3.7
- 0.3.6
- 0.3.5
- 0.3.4
- 0.3.3
- 0.3.2
- 0.3.1
- 0.3.0
- 0.2.5
- 0.2.4
- 0.2.3
- 0.2.1
- 0.2.0
- 0.1.6
- 0.1.2
- 0.1.1
- 0.1.0
This package is auto-updated.
Last update: 2024-12-11 09:53:40 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
Gmail Service Setup
If Type
selects Gmail
. Use an App Password: Generate a new App Password for your Gmail account.
Sign in with App Passwords
Gmail API with Google OAuth 2.0 Support Service Setup
If the Type
field is set to Gmail OAuth 2.0
, please follow the Google instructions to create the required credentials. In your credentials, you need to add Authorized redirect URIs
with at least one URI, such as https://localhost/swissup_oauth2client/google/getToken/
(replace localhost
with your Magento store URL).
Customize the User Consent Screen
In the OAuth consent screen
, you need to enable the Gmail API
scope. . Also, add your Gmail email address as a Test User.
After setting up your credentials, enter the following fields:
Client ID
inUser (key)
Client secret
inPassword (secure key)
In the Email (from)
field, enter your Gmail email address.
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.