Allow usage of special characters on SES (#2068)

This commit is contained in:
Omar Ajoue 2021-08-10 14:51:58 +02:00 committed by GitHub
parent 1d4a5ba8ce
commit 47fbd5e762
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1091,9 +1091,10 @@ export class AwsSes implements INodeType {
];
if (isBodyHtml) {
params.push(`Message.Body.Html.Data=${encodeURI(message)}`);
params.push(`Message.Body.Html.Data=${encodeURIComponent(message)}`);
params.push(`Message.Body.Html.Charset=UTF-8`);
} else {
params.push(`Message.Body.Text.Data=${encodeURI(message)}`);
params.push(`Message.Body.Text.Data=${encodeURIComponent(message)}`);
}
if (toAddresses.length) {