Send email in digital ocean

For that have a look into nodemailer. As far as I understood the default plugin is very basic. Gmail is going to block those, you will need a working smtp server (could be your gmail).

Here is my current config. All variables should be in you .env file.

...
  email: {
    config: {
      provider: "nodemailer",
      providerOptions: {
        host: env("SMTP_HOST"),
        port: env("SMTP_PORT"),
        secure: false,
        auth: {
          user: env("SMTP_USERNAME"),
          pass: env("SMTP_PASSWORD"),
        },
      },
      settings: {
        defaultFrom: env("SMTP_SENDER"),
        defaultReplyTo: env("SMTP_SENDER"),
        testAddress: env("SMTP_SENDER"),
      },
    },
  },
...

Hope it helps

1 Like