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

Cannot get working in production #1

Open
darkcherrycreative opened this issue May 17, 2024 · 1 comment
Open

Cannot get working in production #1

darkcherrycreative opened this issue May 17, 2024 · 1 comment

Comments

@darkcherrycreative
Copy link

I managed to get this working in my dev environment just fine, it's sending emails and works great.

Can't seem to get it working in production despite the same configuration.

On startup I get a message stating:

"warn: you don't have any notification provider plugins installed. you may want to add one to your project."

Then when i trigger an event that would have sent an email out i see the following message:

"an error occured while emails was processing a notification for order.refund_created: could not find a notification provider with id: emails"

Any ideas?

The plugin is registered like this in the config file:

{
resolve: "@rootxpdev/medusa-email-plugin",
options: {
templateDir: "data/emails",
fromAddress: process.env.ADMIN_EMAIL,
smtpHost: process.env.SMTP_HOST,
smtpPort: process.env.SMTP_PORT,
smtpUser: process.env.SMTP_USERNAME,
smtpPassword: process.env.SMTP_PASSWORD,
}
},

@ArnisLielturks
Copy link
Contributor

Sorry for the very late response, didn't saw the notification about this.

I would guess that https://github.com/RootXP-dev/medusa-email-plugin/blob/main/src/services/emails.ts is not properly initialized, Is there any error indicated that this indeed is an issue?

Is the ✔ Email service initialized message visible in the app logs?

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