Sending Confirmation Email using NodeMailer

System Information
  • Strapi Version: 3.5.4
  • Operating System: Debian GNU/Linux 10
  • Database: mySQL 10.5.8-MariaDB
  • Node Version: 12.20.2
  • NPM Version: 7.8.0
  • Yarn Version: 1.22.10
  • Server: AWS LigthSail Instance 4 GB RAM, 2 vCPUs, 80 GB SSD

Hello fellows,
I installed, used and tested the NODEMAILER provider perfectly.
Except SendConfirmationMail did not work!
It returned an ENVELOPE error.

To ** work **, I removed “from” and “replyTo” from “strapi-plugin-users-permissions / services / Users.js”
I don’t know if this is the correct way to solve the issue and I know that changing the core code I will have problems with updates.
Does anyone have any experience in this case to help me?

Original Code
// Send an email to the user.
await strapi.plugins[‘email’].services.email.send({
to: user.email,
from:
settings.from.email && settings.from.name
? ${settings.from.name} <${settings.from.email}>
: undefined,
replyTo: settings.response_email,
subject: settings.object,
text: settings.message,
html: settings.message,
});

My Code
// Send an email to the user.
await strapi.plugins[‘email’].services.email.send({
to: user.email,
subject: settings.object,
text: settings.message,
html: settings.message,
});

You need to set the from and reply-to emails in the admin via the email template settings:

@DMehaffy
thanks for your help.

My bad. Just a dot lost.

Hello DMehaffy,

I have the same issue using strapi version:4.12.1 with mysql.
smtp is configured using @strapi/provider-email-nodemailer:4.12.5.
The test emails are working fine and I also added response and shipper email. abc@mydomain.com for both shipper and response email and Setttings > Advanced Settings > “Enable email confirmation” is also turned on.
this is my package.json

    "@strapi/provider-email-nodemailer": "^4.12.5",
    "@strapi/strapi": "4.12.1",
    "mysql": "2.18.1",
    "nodemailer": "^6.9.4"

But after creating new user I’m not receiving any email. Pl help I’m stuck in this

@Sbzda_Alap_Arsalan_M Have you solved it?
I have similar issue, test and reset password notifications work, but Confirmation Email after after creating the user does not work.

No, it is not resolved. neither got any response from strapi team. on stack overflow question was deleted with the reason “strapi provids its own forum” :sweat_smile: