any news? I’m also facing issues with nodemailer and strapi
STRAPI: 3.6.8
email: {
config: {
provider: 'nodemailer',
providerOptions: {
host: env('SMTP_HOST', 'smtp....),
port: env('SMTP_PORT', 587),
auth: {
user: env('SMTP_USERNAME'),
pass: env('SMTP_PASSWORD'),
},
},
settings: {
defaultFrom: "no-reply@email.com.br",
defaultReplyTo: "no-reply@email.com.br",
},
},
},
module.exports = {
sendMail: async (ctx) => {
try {
const body = ctx.request.body;
await strapi.plugins["email-designer"].services.email.sendTemplatedEmail(
{
to: body.email,
from: 'no-reply@email.com.br'
},
{
templateId: 1,
},
{
body
}
);
return { status: "success" };
} catch (err) {
ctx.response.status = 404
return { error: err }
}
}
};
response
{
"error": {
"errno": -111,
"code": "ESOCKET",
"syscall": "connect",
"address": "127.0.0.1",
"port": 1025,
"command": "CONN"
}
}