idea-aws 4.0.8 → 4.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/ses.js +2 -2
- package/package.json +1 -1
package/dist/src/ses.js
CHANGED
|
@@ -167,9 +167,9 @@ class SES {
|
|
|
167
167
|
mailOptions.text = emailData.text;
|
|
168
168
|
mailOptions.attachments = emailData.attachments;
|
|
169
169
|
// note: Nodemailer doesn't support SESv2 as of August 2023
|
|
170
|
-
const ses = new client_ses_1.
|
|
170
|
+
const ses = new client_ses_1.SESClient({ region: sesParams.region });
|
|
171
171
|
this.logger.debug('SES send email (Nodemailer)');
|
|
172
|
-
return await (0, nodemailer_1.createTransport)({ SES: ses }).sendMail(mailOptions);
|
|
172
|
+
return await (0, nodemailer_1.createTransport)({ SES: { ses, aws: { SendRawEmailCommand: client_ses_1.SendRawEmailCommand } } }).sendMail(mailOptions);
|
|
173
173
|
}
|
|
174
174
|
prepareEmailDestination(emailData) {
|
|
175
175
|
return {
|