Skip to content

Issue with nodemailer and ses #159

Description

@louisdussarps

Describe the Bug

With the last release of @wbce-d9/api, there is an error while trying to connect, if using SES configuration for emails :

Error: Using legacy SES configuration, expecting @aws-sdk/client-sesv2, see https://nodemailer.com/transports/ses/
at module.exports.createTransport (/app/node_modules/nodemailer/lib/nodemailer.js:49:29) 
at getMailer (file:///app/node_modules/@wbce-d9/api/dist/mailer.js:23:34)
at new MailService (file:///app/node_modules/@wbce-d9/api/dist/services/mail/index.js:25:23)
at new NotificationsService (file:///app/node_modules/@wbce-d9/api/dist/services/notifications.js:14:28)
at new ActivityService (file:///app/node_modules/@wbce-d9/api/dist/services/activity.js:19:37)
at new AuthenticationService (file:///app/node_modules/@wbce-d9/api/dist/services/authentication.js:26:32)
at file:///app/node_modules/@wbce-d9/api/dist/auth/drivers/openid.js:184:39
at file:///app/node_modules/@wbce-d9/api/dist/utils/async-handler.js:1:66
at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
at next (/app/node_modules/express/lib/router/route.js:149:13)
at Route.dispatch (/app/node_modules/express/lib/router/route.js:119:3)
at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
at /app/node_modules/express/lib/router/index.js:284:15
at Function.process_params (/app/node_modules/express/lib/router/index.js:346:12)
at next (/app/node_modules/express/lib/router/index.js:280:10)
at Function.handle (/app/node_modules/express/lib/router/index.js:175:3)

To Reproduce

Configure AWS SES env variables

Directus Version

@wbce-d9/api 11.1.5

Hosting Strategy

Self-Hosted (Docker Image)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions