回答編集履歴
2
コメントにあわせて文の位置を修正
test
CHANGED
@@ -52,9 +52,9 @@
|
|
52
52
|
const cc = sheet.getRange(cellCc).getValue();
|
53
53
|
const subject = sheet.getRange(cellSubject).getValue();
|
54
54
|
const body = sheet.getRange(cellBody).getValue();
|
55
|
-
const attachments = [pdf];
|
56
55
|
|
57
56
|
// PDFを添付してメールを送信
|
57
|
+
const attachments = [pdf];
|
58
58
|
GmailApp.sendEmail(to, subject, body, {cc, attachments});
|
59
59
|
}
|
60
60
|
```
|
1
若干の修正(動作は変わりません)
test
CHANGED
@@ -52,9 +52,10 @@
|
|
52
52
|
const cc = sheet.getRange(cellCc).getValue();
|
53
53
|
const subject = sheet.getRange(cellSubject).getValue();
|
54
54
|
const body = sheet.getRange(cellBody).getValue();
|
55
|
+
const attachments = [pdf];
|
55
56
|
|
56
57
|
// PDFを添付してメールを送信
|
57
|
-
GmailApp.sendEmail(to, subject, body, {cc, attachments
|
58
|
+
GmailApp.sendEmail(to, subject, body, {cc, attachments});
|
58
59
|
}
|
59
60
|
```
|
60
61
|
|