mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
🐛 Fixing issue with Gmail subject enconding (#1121)
Reported by community user huuich (https://community.n8n.io/t/gmail-integration-partly-created/693/12?u=jan) An attempt to fix the problem using basic JS functions (escape / unescape / encoding / decoding) did not work, so I decided to use MailComposer as suggested by Jan on Jira Issue PROD-575
This commit is contained in:
@@ -329,7 +329,7 @@ export class Gmail implements INodeType {
|
||||
method = 'POST';
|
||||
|
||||
body = {
|
||||
raw: encodeEmail(email),
|
||||
raw: await encodeEmail(email),
|
||||
};
|
||||
|
||||
responseData = await googleApiRequest.call(this, method, endpoint, body, qs);
|
||||
@@ -427,7 +427,7 @@ export class Gmail implements INodeType {
|
||||
email.reference = id;
|
||||
|
||||
body = {
|
||||
raw: encodeEmail(email),
|
||||
raw: await encodeEmail(email),
|
||||
threadId: this.getNodeParameter('threadId', i) as string,
|
||||
};
|
||||
|
||||
@@ -625,7 +625,7 @@ export class Gmail implements INodeType {
|
||||
|
||||
body = {
|
||||
message: {
|
||||
raw: encodeEmail(email),
|
||||
raw: await encodeEmail(email),
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user