From 107412e2d3857cf97513a3bab3a49d03509fefb7 Mon Sep 17 00:00:00 2001 From: Artyom Savchenko Date: Mon, 28 Apr 2025 21:04:22 +0700 Subject: [PATCH] UBERF-10386: Fix SES client (#8737) Signed-off-by: Artem Savchenko --- services/mail/pod-mail/src/transport.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/mail/pod-mail/src/transport.ts b/services/mail/pod-mail/src/transport.ts index 3433be3eee..9a431be8f4 100644 --- a/services/mail/pod-mail/src/transport.ts +++ b/services/mail/pod-mail/src/transport.ts @@ -13,11 +13,12 @@ // limitations under the License. // import nodemailer, { type Transporter } from 'nodemailer' -import aws from '@aws-sdk/client-ses' +import * as aws from '@aws-sdk/client-ses' import { type Config, type SmtpConfig, type SesConfig, getTlsSettings } from './config' function smtp (config: SmtpConfig): Transporter { + console.log('Using SMTP config') const auth = config.Username !== undefined && config.Password !== undefined ? { @@ -37,6 +38,7 @@ function smtp (config: SmtpConfig): Transporter { } function ses (config: SesConfig): Transporter { + console.log('Using AWS SES config') const ses = new aws.SES({ region: config.Region, credentials: {