彰化一整天的論壇

 找回密碼
 立即註冊
查看: 577|回復: 0

Google 文件寄email語法

[複製鏈接]
發表於 2015-11-17 14:19:46 | 顯示全部樓層 |閱讀模式
  1. function sendToMultiple() {
  2.   var message = "This is a test of HTML <br><br> Line two";

  3.   var recipientsTO = "example@gmail.com" + "," + "example@yahoo.com";
  4.   var recipientsCC = "example@gmail.com";
  5.   var Subject = "Holiday Approval Request";
  6.   var html = message;

  7.   MailApp.sendEmail({
  8.     to: recipientsTO,
  9.     cc: recipientsCC,
  10.     subject: Subject,
  11.     htmlBody: html
  12.   });

  13. }
複製代碼
http://stackoverflow.com/questions/28355195/google-script-mailapp-sendemail-to-multiple-addresses
回復

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 立即註冊

本版積分規則

 ㄚ母滴雞湯
 員林香純滴雞精

Archiver|手機版|小黑屋|彰化一整天的論壇(Excel,Office)  |网站地图

GMT+8, 2019-7-19 17:05 , Processed in 0.142905 second(s), 19 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回復 返回頂部 返回列表