I'm currently looking to send email with my strapi backend.
I follow this tutorial to make it work.
In short, the tutorial tell you to install strapi-provider-email-nodemailer that is provider agnostic.
Now, I get an error Error: can not connect to any SMTP server,
I don't understand why because I made everything the same as it's recommended in the tutorial...
Here is my plugin file :
module.exports = ({ env }) => ({
// ...
email: {
provider: env('EMAIL_PROVIDER'),
providerOptions: {
host: env('EMAIL_SMTP_HOST', 'smtp.example.com'),
port: env('EMAIL_SMTP_PORT', 587),
auth: {
user: env('EMAIL_SMTP_USER'),
pass: env('EMAIL_SMTP_PASS'),
},
},
settings: {
defaultFrom: env('EMAIL_ADDRESS_FROM'),
defaultReplyTo: env('EMAIL_ADDRESS_REPLY'),
},
},
// ...
})
and this is my .env file :
EMAIL_PROVIDER=nodemailer
EMAIL_SMTP_HOST=smtp-relay.sendinblue.com
EMAIL_SMTP_PORT=587
EMAIL_SMTP_USER=myuser@email.com
EMAIL_SMTP_PASS=mypassword
EMAIL_ADDRESS_FROM=myuser@email.com
EMAIL_ADDRESS_REPLY=myuser@email.com
If somebody as an idea... Thanks a lot.