Hello, I am having issues with email sending.
I’ve setup the email provider plugin using nodemailer. The setup is inside config/plugins.js
config: {
provider: "nodemailer",
providerOptions: {
host: env("SMTP_HOST"),
port: env("SMTP_PORT"),
secure: true,
auth: {
user: env("EMAIL_USER"),
pass: env("EMAIL_PASS"),
},
},
settings: {
defaultFrom: env("EMAIL_USER"),
defaultReplyTo: env("EMAIL_NOREPLY"),
},
},
},```
I am not using the strapi reset password or signup emails, I am trying to send an email from my endpoint.
Here is the sending code
``` const res = await strapi.plugins["email"].services.email.send({
to: user.email,
subject: emailTemplate.subject,
text: emailTemplate.text,
html: emailTemplate.html,
});```
It is working when testing from the local machine, the emails get sent from the EMAIL_USER email address.
But after deploying to strapi cloud all the emails get sent from no-reply@strapiapp.com.
I am not able to change this in Users and Permissions -> Email templates -> Shipper address which makes sense as I'm not using those templates.
Strapi version 4.19.
What do I do?
<i>This topic has been created from a Discord post (1294332094264250420) to give it more visibility.
It will be on Read-Only mode here.
<a href="https://discord.com/channels/811989166782021633/1294332094264250420/1294332094264250420">Join the conversation on Discord</a></i>