2017-07-12 60 views
1

使用Google App Maker,我可以製作一個表單。我可以創建一個通過電子郵件發送到特定電子郵件地址的提交按鈕。我可以將個別字段值傳遞給電子郵件。Google App Maker - 通過電子郵件發送完成的表單

但我希望能夠發送完整的表格,看看用戶在電子郵件中填寫表格時的樣子。 (如果需要的話,送它作爲一個圖像是好的,但發送它作爲一個可編輯的形式,甚至更好。)

+0

你有沒有考慮通過電子郵件發送鏈接到該表格?很多模板都使用這種方法:https://developers.google.com/appmaker/templates/ –

回答

0

服務器腳本功能,讓您可以嵌入圖片到郵件

function sendEmail(recipient, subject, body, options) { 

    var ImageBlob = DriveApp 
     .getFileById('id') 
     .getBlob() 
     .setName("ImageBlob"); 

    GmailApp.sendEmail(recipient, subject, body, { 
     htmlBody: options.html, 
     inlineImages: { image: ImageBlob } 
    }); 

    // Parameters : 
    // sendEmail(recipient, subject, body) 
    // Name Type Description 
    // recipient String Comma separated list of email addresses 
    // subject String Subject of the email 
    // body String Body of the email 
} 
相關問題