Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use appEvents for email sending, so that plugins can integrate with non SMTP email providers #4730

Closed
3 tasks done
dancastellon opened this issue Oct 12, 2018 · 0 comments
Closed
3 tasks done
Assignees

Comments

@dancastellon
Copy link
Contributor

Prerequisites

  • Are you running the latest version? 2.0 RC5
  • Are you able to consistently reproduce the issue?
  • Did you search the issue queue for existing issue? Search issues

Issue Description

Currently, Reaction only supports sending email through an SMTP account. This logic is hardcoded in imports/plugins/core/core/server/Reaction/processEmailJobs.js. There is no way to plug in to the email job handling and use a third-party email provider that doesn't use SMTP.

Possible Solution

Use the new appEvents to allow other plugins to process email jobs and send with any email service. Example: appEvents.emit("processEmailJobs") from processEmailJobs.js, and appEvents.on("processEmailJobs", (jobs, callback) => CUSTOM_LOGIC_HERE).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants