您好我正在尝试通过脚本从我的谷歌驱动器发送多个图像,但代码似乎不起作用。我怎样才能做到这一点?
function sendEmail() {
var Rainfall = DriveApp.getFilesByName('beach.jpg')
var High = DriveApp.getFilesByName('High.png')
MailApp.sendEmail({
to:"example@google.com",
subject: "Images for Social Media",
body:"Hi Joe, here are the images for Social Media",
attachments: [Rainfall.next(),High.next()]
})
}