Skip to content

Commit 4eb19b4

Browse files
committed
Adding 'fromEmail' and 'signature' props
1 parent ae0a98b commit 4eb19b4

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

components/gmail/actions/create-draft/create-draft.mjs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,18 @@ export default {
7373
"mimeType",
7474
],
7575
},
76+
fromEmail: {
77+
propDefinition: [
78+
gmail,
79+
"fromEmail",
80+
],
81+
},
82+
signature: {
83+
propDefinition: [
84+
gmail,
85+
"signature",
86+
],
87+
},
7688
},
7789
async run({ $ }) {
7890
this.attachmentFilenames = utils.parseArray(this.attachmentFilenames);

components/gmail/gmail.app.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,10 @@ export default {
318318
}
319319
}
320320

321+
if (props.signature) {
322+
props.body += props.signature;
323+
}
324+
321325
if (props.bodyType === constants.BODY_TYPES.HTML) {
322326
opts.html = props.body;
323327
} else {

0 commit comments

Comments
 (0)