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,
});