承接 swissup/module-email 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

swissup/module-email

Composer 安装命令:

composer require swissup/module-email

包简介

Magento2 email providers integration (smtp, mandrill, amazon ses)

README 文档

README

Magento2 module for email providers integration.

example

Following email services are supported:

  • Gmail
  • Manual SMTP settings
  • Gmail OAuth 2.0
  • Sendmail

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

  1. Navigate to "Marketing → Communications → Email Services" example1
  2. Press "Add New" button
  3. Create service
    • Specify the Name
    • Choose Type from drop-down
    • Fill all required fields
    • Press "Check Service" button and wait for response
    • If everything works fine, press "Save" button example
  4. Navigate "Stores → Configurations → Advanced → System → Mail Sending Settings"
  5. Select new service in the "Default Transport Email Service" drop-down config
  6. 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). Gmail OAuth2 Credential

Customize the User Consent Screen

In the OAuth consent screen, you need to enable the Gmail API scope. Add Scope. Also, add your Gmail email address as a Test User. After setting up your credentials, enter the following fields:

  • Client ID in User (key)
  • Client secret in Password (secure key)

In the Email (from) field, enter your Gmail email address.

Logging

  1. Navigate "Stores → Configurations → Advanced → System → Mail Sending Settings"
  2. "Logging Enable" set Yes
  3. 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

swissup/module-email 适用场景与选型建议

swissup/module-email 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 13.59k 次下载、GitHub Stars 达 14, 最近一次更新时间为 2018 年 09 月 26 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「email」 「smtp」 「mandrill」 「gmail」 「sendmail」 「Amazon SES」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 swissup/module-email 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 swissup/module-email 我们能提供哪些服务?
定制开发 / 二次开发

基于 swissup/module-email 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 13.59k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 14
  • 点击次数: 16
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 14
  • Watchers: 9
  • Forks: 9
  • 开发语言: PHP

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2018-09-26