Skip to content

Nodemailer configuration #13796

@iwoogy

Description

@iwoogy

Bug report

Required System information

  • Node.js version: v14.17.1
  • NPM version: 6.14.15
  • Strapi version: 4.2.3
  • Database: sqlite
  • Operating system: OS X 12.4

Describe the bug

I'm quite new to Strapi. I tried to configure nodemailer to send email via smtp.

Steps to reproduce the behavior

  1. Install nodemailer provider Doc
    npm install @strapi/provider-email-nodemailer --save

  2. Configure the plugin.js for local development

CleanShot 2565-07-18 at 19 15 30@2x

  1. Start MailDev via Docker

docker run -p 1080:1080 -p 1025:1025 maildev/maildev

CleanShot 2565-07-18 at 19 02 54@2x

CleanShot 2565-07-18 at 19 01 25@2x

  1. Test email delivery

CleanShot 2565-07-18 at 19 00 58@2x

  1. Error in the console

CleanShot 2565-07-18 at 19 07 22@2x

error: Couldn't send test email: can not connect to any SMTP server.
Error: Couldn't send test email: can not connect to any SMTP server.

Expected behavior

Sending a test email successfully.

Additional context

Github repo for reproduction.
https://github.com/iwoogy/StrapiNodeMailerDev

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions