In Email settings ---> fields seems to be disabled

System Information
  • Strapi Version: 4.0.0
  • Operating System: linux
  • Database:
  • Node Version: 14.18.2
  • NPM Version: 6.14.15
  • Yarn Version:

In Email settings —> fields seems to be disabled

How to enable this


Installed strapi nodemailer & created plugins.js inside the config folder. Added below code inside the plugins.js

module.exports = ({
  env
}) => ({
  email: {
    provider: 'nodemailer',
    providerOptions: {
      host: env('SMTP_HOST', 'xxxx'),
      port: env('SMTP_PORT', xx),
      auth: {
        user: env('SMTP_USERNAME'),
        pass: env('SMTP_PASSWORD'),
      },
    },
    settings: {
      defaultFrom: 'xxxx@gmail.com',
      defaultReplyTo: 'xxxx@gmail.com',
    },
  },
})

But not getting the email-settings from plugins.js

Please advise me a solution for this

1 Like

Found the solution, your plugins.js config file fromat is actually outdated in v4,
see: Updated plugins.js config file for V4 by nohehf · Pull Request #8 · bass3l/strapi-provider-email-smtp · GitHub
which is for a different module but exactly the same workaround :slight_smile: