System Information
- Strapi Version: 3.4.5
- Operating System: Macos
- Database: SQL lite
- Node Version: v14.15.0
- NPM Version: 6.14.11
- Yarn Version: 1.22.10
Hi everyone,
anyone working with AWS SES for sending emails.
I have put all the configuration but, I always endup with :
[2021-02-03T11:02:50.296Z] debug : Error: connect ETIMEDOUT 35.158.187.131:443
[2021-02-03T11:02:50.297Z] debug : {}
This on local dev.
I used the same settings with nodemailer on an express project without issues.
email: {
provider: 'amazon-ses',
providerOptions: {
key: 'XXXXXXX',
secret: 'XXXXXXXXXXXXXXXXXXXXXX',
amazon: 'https://email-smtp.eu-central-1.amazonaws.com',
},
module.exports = {
/**
- Sends an email to the recipient in the body of the request
*/
send: async (ctx) => {
const body = ctx.request.body
const sendTo = body.email
strapi.log.debug(Trying to send an email to ${sendTo}
)
const templateId = “1”,
to = sendTo,
from = “contact@xxxx.com”,
replyTo = “contact@xxxx.com”,
subject = “[TEST] This is a test using strapi-email-designer”,
userData = {
email: sendTo,
};
try {
await strapi.plugins[“email-designer”].services.email.send({
templateId,
to,
from,
replyTo,
subject,
data: userData,
});
} catch (err) {
strapi.log.debug(": ", err);
return ctx.badRequest(null, err);
}
},
}
Thanks for the Help