{"id":6075,"date":"2021-09-24T10:50:15","date_gmt":"2021-09-24T01:50:15","guid":{"rendered":"https:\/\/blog.synnex.co.jp\/?p=6075"},"modified":"2021-11-19T16:27:56","modified_gmt":"2021-11-19T07:27:56","slug":"gas-send-emails-regularly","status":"publish","type":"post","link":"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-send-emails-regularly\/","title":{"rendered":"\u30c8\u30ea\u30ac\u30fc\u3067\u5b9a\u671f\u7684\u306b\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308bGAS"},"content":{"rendered":"\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u4e0a\u3067\u4e00\u89a7\u306b\u306a\u3063\u3066\u3044\u308b\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3078\u3001\u30c8\u30ea\u30ac\u30fc\u3067\u5b9a\u671f\u7684\u306b\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308bGoogleAppsScript\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u6982\u8981\">\u6982\u8981<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/sendmail-with-trigger.html#%E6%A6%82%E8%A6%81\"><\/a><\/h2>\n\n\n\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\uff08Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\uff09\u4e0a\u306b\u3042\u308b\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u4e00\u89a7\u3078\u3001\u30c8\u30ea\u30ac\u30fc\u3092\u7528\u3044\u3066\u5b9a\u671f\u7684\u306b\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308bGoogleAppsScript\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br>\u30e1\u30fc\u30eb\u9001\u4fe1\u306e\u90e8\u5206\u306b\u3064\u3044\u3066\u306f\u524d\u56de\u307e\u3067\u306e<a href=\"https:\/\/jp.tdsynnex.com\/blog\/google\/sending-email-from-spreadsheet\/\">\u30e1\u30fc\u30eb\u9001\u4fe1GAS<\/a>\u3092\u5229\u7528\u3057\u307e\u3059\u3002<br>\u307e\u305f\u3001\u30c8\u30ea\u30ac\u30fc\u306e\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f<a href=\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-trigger\/\">\u3053\u3061\u3089<\/a>\u3092\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<br>\u4eca\u56de\u306f\u4e0b\u8a183\u3064\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u3092\u4f8b\u306b\u30c8\u30ea\u30ac\u30fc\u306e\u4f7f\u3044\u65b9\u3092\u7d39\u4ecb\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>\u300c\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304b\u3089\uff08\u8d77\u52d5\u6642\uff09\u300d\u3092\u7528\u3044\u305f\u4e0d\u5b9a\u671f\u9001\u4fe1<\/li><li>\u300c\u6642\u9593\u4e3b\u5c0e\u578b\u300d\u3092\u7528\u3044\u305f\u5b9a\u671f\u9001\u4fe1<\/li><li>\u300c\u6642\u9593\u4e3b\u5c0e\u578b\u300d\u3092\u7528\u3044\u3066\u6761\u4ef6\u3042\u308a\u306e\u5b9a\u671f\u9001\u4fe1<\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"1-\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304b\u3089\u8d77\u52d5\u6642\u3092\u7528\u3044\u305f\u4e0d\u5b9a\u671f\u9001\u4fe1\">1. \u300c\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304b\u3089\uff08\u8d77\u52d5\u6642\uff09\u300d\u3092\u7528\u3044\u305f\u4e0d\u5b9a\u671f\u9001\u4fe1<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/sendmail-with-trigger.html#1-%E3%82%B9%E3%83%97%E3%83%AC%E3%83%83%E3%83%89%E3%82%B7%E3%83%BC%E3%83%88%E3%81%8B%E3%82%89%E8%B5%B7%E5%8B%95%E6%99%82%E3%82%92%E7%94%A8%E3%81%84%E3%81%9F%E4%B8%8D%E5%AE%9A%E6%9C%9F%E9%80%81%E4%BF%A1\"><\/a><\/h2>\n\n\n\n<p>\u3053\u3053\u3067\u306fGoogle\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u7d10\u3065\u3044\u305fGAS\u306e\u30c8\u30ea\u30ac\u30fc\u306e\u30bd\u30fc\u30b9\u300c\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304b\u3089\u300d\u306e\u300c\u8d77\u52d5\u6642\u300d\u3092\u7528\u3044\u307e\u3059\u3002<br>\u3053\u306e\u30c8\u30ea\u30ac\u30fc\u3067\u306f\u3001\u305d\u306e\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304c\u65b0\u3057\u304f\u958b\u304b\u308c\u305f\u3068\u304d(\u8d77\u52d5\u3057\u305f\u3068\u304d)\u306b\u6307\u5b9a\u306e\u95a2\u6570(function)\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u306f\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304c\u8d77\u52d5\u3057\u305f\u3053\u3068\u3092\u77e5\u3089\u305b\u308b\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308bGAS\u3092\u4f5c\u6210\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"1-\u30e1\u30fc\u30eb\u9001\u4fe1gas\u4f5c\u6210\">(1) \u30e1\u30fc\u30eb\u9001\u4fe1GAS\u4f5c\u6210<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/sendmail-with-trigger.html#1-%E3%83%A1%E3%83%BC%E3%83%AB%E9%80%81%E4%BF%A1gas%E4%BD%9C%E6%88%90\"><\/a><\/h3>\n\n\n\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304c\u8d77\u52d5\u3057\u305f\u3053\u3068\u3092\u77e5\u3089\u305b\u308b\u30e1\u30fc\u30eb\u3092\u4f5c\u6210\u30fb\u9001\u4fe1\u3059\u308bGAS\u4f5c\u6210\u3057\u307e\u3059\u3002<br>\u30e1\u30fc\u30eb\u306e\u5185\u5bb9\u306b\u306f\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306eURL\u3092\u542b\u3081\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>13\u884c\u76ee\u3067\u306f\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306eURL\u3092\u53d6\u5f97\u3057\u3066\u3044\u307e\u3059\u3002 \u307e\u305a<code>SpreadsheetApp.getActiveSpreadsheet()<\/code>\u3067GAS\u306e\u7d10\u3065\u3044\u3066\u3044\u308b\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<br>\u53d6\u5f97\u3057\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5bfe\u3057\u3066<code>getUrl()<\/code>\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u305d\u306e\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30a2\u30af\u30bb\u30b9URL\u304c\u6587\u5b57\u5217\u3067\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-js\" data-lang=\"JavaScript\"><code>function sendMailOnOpen() {\n\nconst address = &#39;admin@example.com&#39;; \/\/ \u30e1\u30fc\u30eb\u306e\u9001\u4ed8\u5148\nconst subject = &#39;\u3010\u8d77\u52d5\u901a\u77e5\u3011\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8&#39;; \/\/ \u30e1\u30fc\u30eb\u306e\u4ef6\u540d\n\nconst bodyTemplate = `\n\u4e0b\u8a18\u306e\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304c\u8d77\u52d5\u3057\u307e\u3057\u305f\u3002  \n\n\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306eURL\uff1a{url}\n`;\n\n\/\/ \u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306eURL\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\nconst url = SpreadsheetApp.getActiveSpreadsheet().getUrl();\n\nlet body = bodyTemplate\n    .replace(&#39;{url}&#39;, url)\n\nGmailApp.sendEmail(address, subject, body);\n}<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"2-\u30c8\u30ea\u30ac\u30fc\u306e\u4f5c\u6210\">(2) \u30c8\u30ea\u30ac\u30fc\u306e\u4f5c\u6210<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/sendmail-with-trigger.html#2-%E3%83%88%E3%83%AA%E3%82%AC%E3%83%BC%E3%81%AE%E4%BD%9C%E6%88%90\"><\/a><\/h3>\n\n\n\n<p>\u30c8\u30ea\u30ac\u30fc\u3092\u4f5c\u6210\u3057\u3001\u753b\u50cf\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"735\" height=\"709\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/09\/001_mailTrigger.png\" alt=\"\" class=\"wp-image-6077\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/09\/001_mailTrigger.png 735w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/09\/001_mailTrigger-300x289.png 300w\" sizes=\"auto, (max-width: 735px) 100vw, 735px\" \/><\/figure>\n\n\n\n<p>\u5b9f\u884c\u3059\u308b\u30c7\u30d7\u30ed\u30a4\u3092\u9078\u629e\u306b\u3064\u3044\u3066\uff1a<\/p>\n\n\n\n<p>\u3053\u3053\u3067\u8a00\u3046\u30c7\u30d7\u30ed\u30a4\u3068\u306f\u66f8\u304d\u51fa\u3055\u308c\u305f\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6307\u3057\u3001<code>Head<\/code>\u306f\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u6700\u65b0\u306e\u30b3\u30fc\u30c9\u3092\u610f\u5473\u3057\u307e\u3059\u3002<br>\u3064\u307e\u308a\u4e0a\u56f3\u3067\u8a2d\u5b9a\u3057\u305f\u30c8\u30ea\u30ac\u30fc\u306f\u3001\u4ee5\u964d\u30b3\u30fc\u30c9\u3092\u4fee\u6b63\u30fb\u5909\u66f4\u3057\u3066\u3082\u5e38\u306b\u6700\u65b0\u306e\u5185\u5bb9\u3067\u5b9f\u884c\u3057\u3066\u304f\u308c\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<br>\u9006\u306b\u4ee5\u964d\u306e\u30b3\u30fc\u30c9\u306e\u5909\u66f4\u3092\u53cd\u6620\u3057\u3066\u6b32\u3057\u304f\u306a\u3044\u5834\u5408\u306f\u3001\u30c8\u30ea\u30ac\u30fc\u8a2d\u5b9a\u524d\u306b\u300c\u30c7\u30d7\u30ed\u30a4\u300d\u3092\u884c\u3063\u3066\u305d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30a8\u30e9\u30fc\u901a\u77e5\u8a2d\u5b9a\u306b\u3064\u3044\u3066\uff1a<\/p>\n\n\n\n<p>\u30c8\u30ea\u30ac\u30fc\u304b\u3089\u5b9f\u884c\u3055\u308c\u305f\u30b3\u30fc\u30c9\u3067\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u3068\u304d\u3001\u3069\u308c\u304f\u3089\u3044\u306e\u983b\u5ea6\u3067\u30a8\u30e9\u30fc\u304c\u8d77\u304d\u305f\u3053\u3068\u3092\u901a\u77e5\u3059\u308b\u306e\u304b\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002<br>\u983b\u5ea6\u306e\u8a2d\u5b9a\u306f4\u7a2e\u985e\u3042\u308b\u305f\u3081\u3001\u30c8\u30ea\u30ac\u30fc\u306e\u52d5\u4f5c\u983b\u5ea6\u3084\u7dca\u6025\u6027\u306b\u3088\u3063\u3066\u8a2d\u5b9a\u3057\u307e\u3059\u3002\uff08\u30a8\u30e9\u30fc\u304c\u8d77\u304d\u305f\u5834\u5408\u3059\u3050\u306b\u5bfe\u5fdc\u304c\u5fc5\u8981\u3067\u3042\u308c\u3070\u300c\u4eca\u3059\u3050\u300d\u3092\u9078\u629e\u3059\u308b\u306a\u3069\uff09 \u300c\u4eca\u3059\u3050\u901a\u77e5\u3092\u53d7\u3051\u53d6\u308b\u300d\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u3068\u305f\u3060\u3061\u306b\u901a\u77e5\u3057\u307e\u3059\u3002<br>\u300c1\u6642\u9593\u304a\u304d\u306b\u901a\u77e5\u3092\u53d7\u3051\u53d6\u308b\u300d\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u30681\u6642\u9593\u3054\u3068\u306b\u307e\u3068\u3081\u3066\u901a\u77e5\u3057\u307e\u3059\u3002<br>\u300c\u6bce\u65e5\u901a\u77e5\u3092\u53d7\u3051\u53d6\u308b\u300d\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u30681\u65e51\u56de\u307e\u3068\u3081\u3066\u901a\u77e5\u3057\u307e\u3059\u3002<br>\u300c1\u9031\u9593\u304a\u304d\u306b\u901a\u77e5\u3092\u53d7\u3051\u53d6\u308b\u300d\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u30681\u9031\u9593\u306b1\u56de\u307e\u3068\u3081\u3066\u901a\u77e5\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"3-\u7d50\u679c\">(3) \u7d50\u679c<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/sendmail-with-trigger.html#3-%E7%B5%90%E6%9E%9C\"><\/a><\/h3>\n\n\n\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30bf\u30d6\u3092\u4e00\u5ea6\u9589\u3058\u3066\u3082\u3046\u4e00\u5ea6\u958b\u304f\u3068\u3001\u4e0b\u8a18\u30e1\u30fc\u30eb\u304c\u5c4a\u304d\u307e\u3057\u305f\u3002<br>\u3053\u306e\u3068\u304d\u30e1\u30fc\u30eb\u306e\u9001\u4fe1\u5143\u306fGAS\u3092\u5b9f\u884c\u3057\u305f\u30a2\u30ab\u30a6\u30f3\u30c8\uff08=\u30c8\u30ea\u30ac\u30fc\u3067\u5b9f\u884c\u3055\u308c\u308b\u5834\u5408\u306f\u30c8\u30ea\u30ac\u30fc\u3092\u4f5c\u6210\u3057\u305f\u30a2\u30ab\u30a6\u30f3\u30c8\uff09\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"779\" height=\"219\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/09\/002_mailTrigger.png\" alt=\"\" class=\"wp-image-6078\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/09\/002_mailTrigger.png 779w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/09\/002_mailTrigger-300x84.png 300w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/09\/002_mailTrigger-768x216.png 768w\" sizes=\"auto, (max-width: 779px) 100vw, 779px\" \/><\/figure>\n\n\n\n<p>\u5b9f\u7528\u4f8b\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u30d5\u30a1\u30a4\u30eb\u3092\u5171\u6709\u3057\u305f\u5f8c\u306b\u3061\u3083\u3093\u3068\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u305f\u304b\u78ba\u8a8d\u3057\u305f\u3044\u5834\u5408<\/li><li>\u4e88\u671f\u3057\u306a\u3044\u6642\u671f\u306b\u30d5\u30a1\u30a4\u30eb\u304c\u958b\u304b\u308c\u3066\u3044\u306a\u3044\u304b\u78ba\u8a8d\u3057\u3001\u958b\u3044\u305f\u5834\u5408\u306b\u306f\u901a\u77e5\u3092\u53d7\u3051\u305f\u3044\u5834\u5408<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"2-\u6642\u9593\u4e3b\u5c0e\u578b\u3092\u7528\u3044\u305f\u5b9a\u671f\u9001\u4fe1\">2. \u300c\u6642\u9593\u4e3b\u5c0e\u578b\u300d\u3092\u7528\u3044\u305f\u5b9a\u671f\u9001\u4fe1<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/sendmail-with-trigger.html#2-%E6%99%82%E9%96%93%E4%B8%BB%E5%B0%8E%E5%9E%8B%E3%82%92%E7%94%A8%E3%81%84%E3%81%9F%E5%AE%9A%E6%9C%9F%E9%80%81%E4%BF%A1\"><\/a><\/h2>\n\n\n\n<p>\u4eca\u5ea6\u306fGAS\u306e\u30c8\u30ea\u30ac\u30fc\u306e\u30bd\u30fc\u30b9\u300c\u6642\u9593\u4e3b\u5c0e\u578b\u300d\u3092\u7528\u3044\u307e\u3059\u3002<br>\u3053\u306e\u30c8\u30ea\u30ac\u30fc\u3067\u306f\u3001\u8a2d\u5b9a\u3057\u305f\u671f\u9593\u6bce\u306b\u7e70\u308a\u8fd4\u3057\u6307\u5b9a\u3057\u305f\u95a2\u6570\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u306f\u300110\u5206\u304a\u304d\u306b\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308bGAS\u3092\u4f5c\u6210\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"1-\u6642\u9593\u4e3b\u5c0e\u578b\u30e1\u30fc\u30eb\u9001\u4fe1\u7528gas\u4f5c\u6210\">(1) \u6642\u9593\u4e3b\u5c0e\u578b\u30e1\u30fc\u30eb\u9001\u4fe1\u7528GAS\u4f5c\u6210<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/sendmail-with-trigger.html#1-%E6%99%82%E9%96%93%E4%B8%BB%E5%B0%8E%E5%9E%8B%E3%83%A1%E3%83%BC%E3%83%AB%E9%80%81%E4%BF%A1%E7%94%A8gas%E4%BD%9C%E6%88%90\"><\/a><\/h3>\n\n\n\n<p>\u73fe\u5728\u306e\u6642\u523b\u3092\u6dfb\u3048\u3066\u30e1\u30fc\u30eb\u3092\u4f5c\u6210\u30fb\u9001\u4fe1\u3059\u308bGAS\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br>\u4eca\u56de\u306f\u7d20\u306eDate\u578b\u3092\u7528\u3044\u3066\u73fe\u5728\u6642\u523b\u3092\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p><code>Date\u578b<\/code>\u3068\u306f\uff1a(\u4e0b\u8a18\u30b3\u30fc\u30c93\u884c\u76ee)<\/p>\n\n\n\n<p>\u6570\u5024\u3084\u6587\u5b57\u5217\u306a\u3069\u3068\u540c\u3058\u30c7\u30fc\u30bf\u578b\u306e\u3072\u3068\u3064\u3067\u3001\u65e5\u4ed8\u3084\u6642\u523b\u30fb\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u306a\u3069\u306e\u60c5\u5831\u3092\u6301\u3063\u305f\u30c7\u30fc\u30bf\u3067\u3059\u3002<br><code>new Date()<\/code>\u3067\u73fe\u5728\u65e5\u6642\u306eDate\u578b\u30c7\u30fc\u30bf\u304c\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<br>\u7d20\u306e\u307e\u307e\u6587\u5b57\u5217\u3068\u3057\u3066\u8868\u793a\u3059\u308b\u3068<code>Wed Jul 21 2021 16:09:07 GMT+0900 (Japan Standard Time)<\/code>\u306e\u3088\u3046\u306a\u8aad\u307f\u306b\u304f\u3044\u5f62\u5f0f\u3067\u8868\u793a\u3055\u308c\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u6574\u5f62\uff08\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\uff09\u3057\u3066\u3042\u3052\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br>\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3084\u65e5\u6642\u306e\u6bd4\u8f03\u30fb\u8a08\u7b97\u3092\u7c21\u5358\u306b\u3059\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u3082\u6570\u591a\u304f\u5b58\u5728\u3057\u307e\u3059\u304c\u3001\u305d\u306e\u7d39\u4ecb\u306f\u5225\u8a18\u4e8b\u3067\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>Date\u578b\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306b\u3064\u3044\u3066\uff1a<\/p>\n\n\n\n<p>\u5e74\u6708\u65e5\u3084\u6642\u9593\u3092\u305d\u308c\u305e\u308c\u306e\u8981\u7d20\u3054\u3068\u306b\u53d6\u5f97\u3057\u3066\u3001\u6587\u5b57\u5217\u3068\u3057\u3066\u5408\u308f\u305b\u308b\u65b9\u6cd5\u3092\u7528\u3044\u3066\u3044\u307e\u3059\u3002<br>\u6ce8\u610f\u70b9\u2460\uff1a\u300c\u6708\u300d\u306f0\u304b\u308912\u30ab\u6708\u5206\u306e\u6570\u5b57\u3067\u53d6\u5f97\u3055\u308c\u308b\u305f\u3081\u3001<code>+1<\/code>\u3092\u3057\u3066\u3042\u3052\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002(\u4f8b\uff1a1\u6708\u21d20\u304c\u5f97\u3089\u308c\u308b\u30022\u6708\u21d21\u304c\u5f97\u3089\u308c\u308b\u3002)<br>\u6ce8\u610f\u70b9\u2461\uff1a\u300c\u66dc\u65e5\u300d\u306f0\u304b\u30897\u7a2e\u985e\u5206\u306e\u6570\u5b57\u3067\u53d6\u5f97\u3055\u308c\u308b\u305f\u3081\u3001\u8868\u793a\u3057\u305f\u3044\u6587\u5b57\u306e\u5f62\u306b\u7f6e\u304d\u63db\u3048\u3066\u3042\u3052\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u4e0b\u8a18\u3067\u306fSwitch\u6587\u3092\u7528\u3044\u3066\u6761\u4ef6\u5206\u5c90\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-js\" data-lang=\"JavaScript\"><code>function sendMailEvery10Minuts() {\n\nconst now = new Date();\n\nconst nowYearStr = now.getFullYear();\nconst nowMonthStr = now.getMonth() + 1;\nconst nowDateStr = now.getDate();\n\nconst nowHoursStr = now.getHours();\nconst nowMinutsStr = now.getMinutes();\nconst nowSecondsStr = now.getSeconds();\n\nconst nowDayNum = now.getDay();\n\nvar nowDayStr = &#39;&#39;;\n\nswitch(nowDayNum){\n  case 0: nowDayStr = &#39;\u65e5\u66dc\u65e5&#39;; break;\n  case 1: nowDayStr = &#39;\u6708\u66dc\u65e5&#39;; break;\n  case 2: nowDayStr = &#39;\u706b\u66dc\u65e5&#39;; break;\n  case 3: nowDayStr = &#39;\u6c34\u66dc\u65e5&#39;; break;\n  case 4: nowDayStr = &#39;\u6728\u66dc\u65e5&#39;; break;\n  case 5: nowDayStr = &#39;\u91d1\u66dc\u65e5&#39;; break;\n  case 6: nowDayStr = &#39;\u571f\u66dc\u65e5&#39;; break;\n}\n\nconst nowStr = nowYearStr +&#39;\u5e74&#39;+ nowMonthStr +&#39;\u6708&#39;+ nowDateStr +&#39;\u65e5(&#39;+ nowDayStr +&#39;)&#39;+ nowHoursStr +&#39;\u6642&#39;+ nowMinutsStr +&#39;\u5206&#39;+ nowSecondsStr +&#39;\u79d2&#39;;\n\n\nconst address = &#39;admin@example.com&#39;; \/\/ \u30e1\u30fc\u30eb\u306e\u9001\u4ed8\u5148\nconst subject = &#39;\u3010\u5b9a\u671f\u30e1\u30fc\u30eb\u3011&#39;+ nowStr; \/\/ \u30e1\u30fc\u30eb\u306e\u4ef6\u540d\n\nconst bodyTemplate = `\n10\u5206\u304a\u304d\u306b\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3057\u3066\u3044\u307e\u3059\u3002  \n\n\u73fe\u5728\u306e\u65e5\u6642\uff1a{now}\n`;\n\nlet body = bodyTemplate\n    .replace(&#39;{now}&#39;, nowStr)\n\nGmailApp.sendEmail(address, subject, body);\n}\n<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"2-\u6642\u9593\u4e3b\u5c0e\u578b\u30c8\u30ea\u30ac\u30fc\u306e\u4f5c\u6210\">(2) \u6642\u9593\u4e3b\u5c0e\u578b\u30c8\u30ea\u30ac\u30fc\u306e\u4f5c\u6210<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/sendmail-with-trigger.html#2-%E6%99%82%E9%96%93%E4%B8%BB%E5%B0%8E%E5%9E%8B%E3%83%88%E3%83%AA%E3%82%AC%E3%83%BC%E3%81%AE%E4%BD%9C%E6%88%90\"><\/a><\/h3>\n\n\n\n<p>\u30c8\u30ea\u30ac\u30fc\u3092\u4f5c\u6210\u3057\u3001\u753b\u50cf\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"739\" height=\"791\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/09\/003_mailTrigger.png\" alt=\"\" class=\"wp-image-6079\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/09\/003_mailTrigger.png 739w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/09\/003_mailTrigger-280x300.png 280w\" sizes=\"auto, (max-width: 739px) 100vw, 739px\" \/><\/figure>\n\n\n\n<p>\u6642\u9593\u4e3b\u5c0e\u578b\u306e\u30c8\u30ea\u30ac\u30fc\u306f\u30c8\u30ea\u30ac\u30fc\u8a2d\u5b9a\u5f8c\u3059\u3050\u306b\u306f\u52d5\u4f5c\u3057\u307e\u305b\u3093\u3002<br>\u8a2d\u5b9a\u3057\u305f\u671f\u9593\u7d4c\u904e\u5f8c\u306b1\u5ea6\u76ee\u306e\u5b9f\u884c\u304c\u3055\u308c\u308b\u306e\u3067\u3001\u30c8\u30ea\u30ac\u30fc\u304b\u3089\u306e\u52d5\u4f5c\u304c\u5fc3\u914d\u306a\u5834\u5408\u306f\u4e00\u5ea6\u77ed\u3044\u671f\u9593\u306e\u30c8\u30ea\u30ac\u30fc\u3092\u4f5c\u3063\u3066\u307f\u3066\u8a66\u3057\u3066\u307f\u308b\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u307e\u305f\u3053\u306e\u300c\u5206\u30d9\u30fc\u30b9\u306e\u30bf\u30a4\u30de\u30fc\u300d\u3084\u300c\u6642\u9593\u30d9\u30fc\u30b9\u306e\u30bf\u30a4\u30de\u30fc\u300d\u306e\u5834\u5408\u3001\u6bce\u66420\u5206\/10\u5206\/20\u5206\u2026\u306e\u3088\u3046\u306b\u5b9f\u884c\u6642\u523b\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u305a\u30c8\u30ea\u30ac\u30fc\u3092\u4f5c\u6210\u3057\u305f\u6642\u9593\u304b\u3089\u8d77\u7b97\u3055\u308c\u307e\u3059\u3002<br>\uff08\u4f8b\uff1a12\u66423\u5206\u306b10\u5206\u304a\u304d\u306e\u30c8\u30ea\u30ac\u30fc\u3092\u4f5c\u6210\u3057\u305f\u5834\u5408\u300112\u664213\u5206\u306b\u5b9f\u884c\u3055\u308c\u308b\uff09<\/p>\n\n\n\n<p>\u3061\u306a\u307f\u306b\u300c\u65e5\u4ed8\u30d9\u30fc\u30b9\u306e\u30bf\u30a4\u30de\u30fc\u300d\u306b\u3064\u3044\u3066\u306f\u3001\u300c\u5348\u524d0\u6642\uff5e1\u6642\u300d\u306b\u5b9f\u884c\u3068\u3044\u3063\u305f\u5f62\u3067\u306e\u8a2d\u5b9a\u306b\u306a\u308a\u4f55\u5206\u306b\u5b9f\u884c\u3055\u308c\u308b\u304b\u306f\u308f\u304b\u308a\u307e\u305b\u3093\u3002<br>\u3082\u3057\u300c\u5fc5\u305a\u6bce\u65e5\u3007\u6642\u3007\u5206\u306b\u30c8\u30ea\u30ac\u30fc\u8d77\u52d5\u3055\u305b\u305f\u3044\u300d\u3068\u3044\u3046\u3088\u3046\u306a\u5834\u5408\u306f\u300c\u6642\u9593\u4e3b\u5c0e\u578b\uff08\u65e5\u4ed8\u30d9\u30fc\u30b9\u306e\u30bf\u30a4\u30de\u30fc\uff09\u300d\u3067\u6bce\u65e5\u300c\u6642\u9593\u4e3b\u5c0e\u578b\uff08\u7279\u5b9a\u306e\u65e5\u6642\uff09\u300d\u3092\u4f5c\u308b\u3068\u3044\u3063\u305f\u5bfe\u5fdc\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002\uff08\u3044\u3064\u304b\u3053\u306e\u5185\u5bb9\u306e\u8a18\u4e8b\u3082\u4f5c\u6210\u3067\u304d\u308c\u3070\u3068\u601d\u3044\u307e\u3059\u3002\uff09<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"3-\u6642\u9593\u4e3b\u5c0e\u578b\u30c8\u30ea\u30ac\u30fc\u7d50\u679c\">(3) \u6642\u9593\u4e3b\u5c0e\u578b\u30c8\u30ea\u30ac\u30fc\u7d50\u679c<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/sendmail-with-trigger.html#3-%E6%99%82%E9%96%93%E4%B8%BB%E5%B0%8E%E5%9E%8B%E3%83%88%E3%83%AA%E3%82%AC%E3%83%BC%E7%B5%90%E6%9E%9C\"><\/a><\/h3>\n\n\n\n<p>10\u5206\u304a\u304d\u306b\u30e1\u30fc\u30eb\u304c\u5c4a\u304d\u307e\u3057\u305f\u3002<br>\u53d7\u4fe1\u30dc\u30c3\u30af\u30b9\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"113\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/09\/004_mailTrigger-1024x113.png\" alt=\"\" class=\"wp-image-6080\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/09\/004_mailTrigger-1024x113.png 1024w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/09\/004_mailTrigger-300x33.png 300w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/09\/004_mailTrigger-768x85.png 768w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/09\/004_mailTrigger.png 1061w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u30e1\u30fc\u30eb\u5185\u5bb9\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"629\" height=\"217\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/09\/005_mailTrigger.png\" alt=\"\" class=\"wp-image-6081\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/09\/005_mailTrigger.png 629w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/09\/005_mailTrigger-300x103.png 300w\" sizes=\"auto, (max-width: 629px) 100vw, 629px\" \/><\/figure>\n\n\n\n<p>\u4eca\u56de\u306e\u4f8b\u306e\u3088\u3046\u306a\u77ed\u3044\u30b3\u30fc\u30c9\u3067\u306f\u7279\u306b\u5f71\u97ff\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u30b3\u30fc\u30c9\u306b\u3088\u3063\u3066\u306f\u5b9f\u884c\u306b\u304b\u304b\u308b\u6642\u9593\u304c\u4e00\u5b9a\u3067\u306f\u306a\u3044\u305f\u3081\u5b9a\u671f\u5b9f\u884c\u3067\u3082\u3042\u308b\u7a0b\u5ea6\u306e\u3076\u308c\u304c\u751f\u3058\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5b9f\u7528\u4f8b\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u5b9a\u4f8b\u4f1a\u306e\u304a\u77e5\u3089\u305b\u30e1\u30fc\u30eb\u3092\u6bce\u9031\u6c34\u66dc\u65e5\u5348\u5f8c5\u6642\u307e\u3067\u306b\u9001\u4fe1\u3059\u308b\u5834\u5408\uff08\u9031\u30d9\u30fc\u30b9\u306e\u30bf\u30a4\u30de\u30fc\uff0f\u6c34\u66dc\u65e5\uff0f\u5348\u5f8c3\u301c4\u6642\uff09<\/li><li>\u6708\u7de0\u3081\u306e\u30ea\u30de\u30a4\u30f3\u30c9\u3092\u6bce\u670825\u65e5\u306e10\u6642\u307e\u3067\u306b\u9001\u4fe1\u3059\u308b\u5834\u5408\uff08\u6708\u30d9\u30fc\u30b9\u306e\u30bf\u30a4\u30de\u30fc\uff0f25\u65e5\uff0f\u5348\u524d8\u301c9\u6642\uff09<\/li><li>\u4e00\u65e5\u4e00\u56de\u51fa\u6b20\u60c5\u5831\u306a\u3069\u306e\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308b\u5834\u5408\uff08\u65e5\u4ed8\u30d9\u30fc\u30b9\u306e\u30bf\u30a4\u30de\u30fc\uff0f\u5348\u524d11\u301c12\u6642\uff09<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"3-\u6642\u9593\u4e3b\u5c0e\u578b\u3092\u7528\u3044\u3066\u6761\u4ef6\u3042\u308a\u306e\u5b9a\u671f\u9001\u4fe1\">3. \u300c\u6642\u9593\u4e3b\u5c0e\u578b\u300d\u3092\u7528\u3044\u3066\u6761\u4ef6\u3042\u308a\u306e\u5b9a\u671f\u9001\u4fe1<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/sendmail-with-trigger.html#3-%E6%99%82%E9%96%93%E4%B8%BB%E5%B0%8E%E5%9E%8B%E3%82%92%E7%94%A8%E3%81%84%E3%81%A6%E6%9D%A1%E4%BB%B6%E3%81%82%E3%82%8A%E3%81%AE%E5%AE%9A%E6%9C%9F%E9%80%81%E4%BF%A1\"><\/a><\/h2>\n\n\n\n<p>\u5148\u307b\u3069\u3068\u540c\u69d8GAS\u306e\u30c8\u30ea\u30ac\u30fc\u306e\u30bd\u30fc\u30b9\u300c\u6642\u9593\u4e3b\u5c0e\u578b\u300d\u3092\u7528\u3044\u307e\u3059\u3002<br>\u4eca\u5ea6\u306f\u3001\u73fe\u5728\u6642\u523b\u3092\u5076\u6570\u5947\u6570\u3067\u5224\u5b9a\u3057\u306620\u5206\u304a\u304d\u306b\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308bGAS\u3092\u4f5c\u6210\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<br>\u203b\u753b\u9762\u4e0a\u3067\u4f5c\u6210\u3067\u304d\u308b\u5206\u30d9\u30fc\u30b9\u306e\u30bf\u30a4\u30de\u30fc\u306e\u30c8\u30ea\u30ac\u30fc\u306f\u300c1\u5206\u304a\u304d\u300d\u300c5\u5206\u304a\u304d\u300d\u300c10\u5206\u304a\u304d\u300d\u300c15\u5206\u304a\u304d\u300d\u300c30\u5206\u304a\u304d\u300d\u306e\u307f<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"1-\u6761\u4ef6\u4ed8\u304d\u30e1\u30fc\u30eb\u9001\u4fe1\u7528gas\u4f5c\u6210\">(1) \u6761\u4ef6\u4ed8\u304d\u30e1\u30fc\u30eb\u9001\u4fe1\u7528GAS\u4f5c\u6210<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/sendmail-with-trigger.html#1-%E6%9D%A1%E4%BB%B6%E4%BB%98%E3%81%8D%E3%83%A1%E3%83%BC%E3%83%AB%E9%80%81%E4%BF%A1%E7%94%A8gas%E4%BD%9C%E6%88%90\"><\/a><\/h3>\n\n\n\n<p>\u5148\u307b\u3069\u3068\u540c\u69d8\u306b\u73fe\u5728\u306e\u6642\u523b\u3092\u53d6\u5f97\u3057\u300120\u5206\u304a\u304d\u306b\u30e1\u30fc\u30eb\u3092\u4f5c\u6210\u30fb\u9001\u4fe1\u3059\u308bGAS\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br>0\u5206\u53f0\/20\u5206\u53f0\/40\u5206\u53f0\u306e\u3068\u304d\u3060\u3051\u9001\u4fe1\u3059\u308b\u3053\u3068\u306720\u5206\u304a\u304d\u3068\u3057\u307e\u3059\u3002\uff08\u4e0b\u8a18\u30b3\u30fc\u30c9\u306e32\u884c\u76ee\uff5e35\u884c\u76ee\u53c2\u7167\uff09<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-js\" data-lang=\"JavaScript\"><code>function sendMailEvery20MinutsAtOdd() {\n\nconst now = new Date();\n\nconst nowYearStr = now.getFullYear();\nconst nowMonthStr = now.getMonth() + 1;\nconst nowDateStr = now.getDate();\n\nconst nowHoursStr = now.getHours();\nconst nowMinutsStr = now.getMinutes();\nconst nowSecondsStr = now.getSeconds();\n\nconst nowDayNum = now.getDay();\n\nvar nowDayStr = &#39;&#39;;\n\nswitch(nowDayNum){\n  case 0: nowDayStr = &#39;\u65e5\u66dc\u65e5&#39;; break;\n  case 1: nowDayStr = &#39;\u6708\u66dc\u65e5&#39;; break;\n  case 2: nowDayStr = &#39;\u706b\u66dc\u65e5&#39;; break;\n  case 3: nowDayStr = &#39;\u6c34\u66dc\u65e5&#39;; break;\n  case 4: nowDayStr = &#39;\u6728\u66dc\u65e5&#39;; break;\n  case 5: nowDayStr = &#39;\u91d1\u66dc\u65e5&#39;; break;\n  case 6: nowDayStr = &#39;\u571f\u66dc\u65e5&#39;; break;\n}\n\nconst nowStr = nowYearStr +&#39;\u5e74&#39;+ nowMonthStr +&#39;\u6708&#39;+ nowDateStr +&#39;\u65e5(&#39;+ nowDayStr +&#39;)&#39;+ nowHoursStr +&#39;\u6642&#39;+ nowMinutsStr +&#39;\u5206&#39;+ nowSecondsStr +&#39;\u79d2&#39;;\n\n\/\/ ----\u3053\u3053\u3088\u308a\u4e0a\u306f\u5148\u307b\u3069\u3068\u540c\u3058----\n\n\/\/ \u300c\u5206\u300d\u30922\u6841\u8868\u793a\u306b\u5909\u63db\u3057\u305f\u3082\u306e\u3092\u53d6\u5f97(\u89e3\u8aac\u5f8c\u8ff0)\nlet nowMinutsDoubleDigit = ( &#39;0&#39; + nowMinutsStr ).slice( -2 );\n\n\/\/ \u5341\u306e\u4f4d\u304c\u5076\u6570\u304b\u5224\u5b9a\u3057\u3001\u30e1\u30fc\u30eb\u4f5c\u6210\uff06\u9001\u4fe1\u5b9f\u884c(\u89e3\u8aac\u5f8c\u8ff0)\nif(Math.floor(nowMinutsDoubleDigit \/ 10) %2 == 0){\n\n  const address = &#39;admin@example.com&#39;; \/\/ \u30e1\u30fc\u30eb\u306e\u9001\u4ed8\u5148\n  const subject = &#39;\u3010\u5b9a\u671f\u30e1\u30fc\u30eb\u3011&#39;+ nowStr; \/\/ \u30e1\u30fc\u30eb\u306e\u4ef6\u540d\n\n  const bodyTemplate = `\n  20\u5206\u304a\u304d\u306b\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3057\u3066\u3044\u307e\u3059\u3002  \n\n  \u73fe\u5728\u306e\u65e5\u6642\uff1a{now}\n  `;\n\n  let body = bodyTemplate\n      .replace(&#39;{now}&#39;, nowStr)\n\n  GmailApp.sendEmail(address, subject, body);\n  }\n}<\/code><\/pre><\/div>\n\n\n\n<p>\u300c\u5206\u300d\u30922\u6841\u8868\u793a\u306b\u5909\u63db\u3000\u89e3\u8aac\uff1a\uff0832\u884c\u76ee\uff09<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-js\" data-lang=\"JavaScript\"><code>\/\/ \u300c\u5206\u300d\u30922\u6841\u8868\u793a\u306b\u5909\u63db\u3057\u305f\u3082\u306e\u3092\u53d6\u5f97(\u89e3\u8aac\u5f8c\u8ff0)\nlet nowMinutsDoubleDigit = ( &#39;0&#39; + nowMinutsStr ).slice( -2 );<\/code><\/pre><\/div>\n\n\n\n<p><code>nowMinutsStr<\/code>\u306f0\uff5e59\u306e\u6570\u5b57\u3067\u3059\u3002\u305d\u306e\u305f\u30810~9\u306f1\u6841\u8868\u793a\u3068\u306a\u308a\u307e\u3059\u3002<br>20\u5206\u304a\u304d\u306e\u52d5\u4f5c\u306b\u306f\u3001\u30c8\u30ea\u30ac\u30fc\u309210\u5206\u304a\u304d\u306b\u52d5\u4f5c\u3055\u305b\u3066\u3001\u5341\u306e\u4f4d\u304c\u5076\u6570\u304b\u3069\u3046\u304b\u3067\u5224\u5b9a\u3092\u3057\u307e\u3059\u3002<br>\u305d\u306e\u305f\u30810~9\u5206\u306e\u969b\u306f\u300100~09\u3068\u3044\u3046\u5f62\u306b\u3057\u306a\u3044\u3068\u5341\u306e\u4f4d\u306e\u6587\u5b57\u304c\u5f97\u3089\u308c\u305a\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002<br>\u307e\u305a<code>'0' + nowMinutsStr<\/code>\u3068\u3059\u308b\u3053\u3068\u3067\u300100\uff5e059\u306e\u6587\u5b57\u5217\u306b\u306a\u308a\u307e\u3059\u3002<br>\u66f4\u306b\u3053\u308c\u306e\u6841\u6570\u3092\u3092<code>slice(n)<\/code>\u30e1\u30bd\u30c3\u30c9\u3092\u7528\u3044\u3066\u6574\u3048\u307e\u3059\u3002<code>slice(-2)<\/code>\u3067\u4e0b2\u6841\u306b\u306a\u308a\u307e\u3059\u3002<br>\u203b<code>slice(n)<\/code>\u306f\u6307\u5b9a\u3057\u305f\u6570\u5b57<code>n<\/code>\u3067\u6587\u5b57\u5217\u307e\u305f\u306f\u914d\u5217\u3092\u5207\u308a\u51fa\u3059\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002\u6b63\u306e\u6570\u3067\u982d\u304b\u3089n+1\u6587\u5b57\u4ee5\u964d\u3001\u8ca0\u306e\u6570\u3067\u5f8c\u308d\u304b\u3089n\u6587\u5b57\u5206\u3002<br>2\u6841\u306b\u6574\u3048\u305f\u7d50\u679c\u306f<code>nowMinutsDoubleDigit<\/code>\u306b\u683c\u7d0d\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u5341\u306e\u4f4d\u304c\u5076\u6570\u304b\u5224\u5b9a\u3000\u89e3\u8aac\uff1a\uff0835\u884c\u76ee\uff09<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-js\" data-lang=\"JavaScript\"><code>\/\/ \u5341\u306e\u4f4d\u304c\u5076\u6570\u304b\u5224\u5b9a\u3057\u3001\u30e1\u30fc\u30eb\u4f5c\u6210\uff06\u9001\u4fe1\u5b9f\u884c(\u89e3\u8aac\u5f8c\u8ff0)\nif(Math.floor(nowMinutsDoubleDigit \/ 10) %2 == 0){ \n\n\/\/...\u4ee5\u964d\u7701\u7565\n<\/code><\/pre><\/div>\n\n\n\n<p>2\u6841\u306b\u6574\u3048\u305f<code>nowMinutsDoubleDigit<\/code>\u306e\u5341\u306e\u4f4d\u306e\u6570\u5b57\u304c\u5076\u6570\u304b\u3069\u3046\u304b\u5224\u5b9a\u3057\u307e\u3059\u3002 \u307e\u305a\u306f<code>nowMinutsDoubleDigit \/ 10<\/code>\u3067\u5341\u306e\u4f4d\u304c\u4e00\u306e\u4f4d\u306b\u306a\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002\uff08\u4f8b\uff1a35\u21d23.5\uff09<br>\u3064\u304e\u306b<code>Math.floor(n)<\/code>\u3092\u7528\u3044\u3066\u5c0f\u6570\u70b9\u4ee5\u4e0b\u3092\u5207\u308a\u6368\u3066\u307e\u3059\u3002\uff08\u4f8b\uff1a3.5\u21d23\uff09<br>\u305d\u3057\u3066<code>n % 2<\/code>\u3067\u5076\u6570\u304b\u3069\u3046\u304b\u5224\u5b9a\u3057\u307e\u3059\u3002\u5076\u6570\u306a\u3089\u3070\u7d50\u679c\u306f0\uff08\u4f59\u308a\u306a\u3057\uff09\u3067\u3059\u3002\uff08\u4f8b\uff1a3 % 2\u21d21\uff09<br>\u4eca\u56de\u306f\u5076\u6570\u306e\u3068\u304d\u3001\u3064\u307e\u308a0\u5206\u53f0\uff0f20\u5206\u53f0\uff0f40\u5206\u53f0\u306e\u5834\u5408\u306f\u30e1\u30fc\u30eb\u4f5c\u6210\uff06\u9001\u4fe1\u3068\u3057\u305f\u3044\u306e\u3067\u3001<code>== 0<\/code>\u306e\u6761\u4ef6\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"2-\u6761\u4ef6\u4ed8\u304d\u6642\u9593\u4e3b\u5c0e\u578b\u30c8\u30ea\u30ac\u30fc\u306e\u4f5c\u6210\">(2) \u6761\u4ef6\u4ed8\u304d\u6642\u9593\u4e3b\u5c0e\u578b\u30c8\u30ea\u30ac\u30fc\u306e\u4f5c\u6210<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/sendmail-with-trigger.html#2-%E6%9D%A1%E4%BB%B6%E4%BB%98%E3%81%8D%E6%99%82%E9%96%93%E4%B8%BB%E5%B0%8E%E5%9E%8B%E3%83%88%E3%83%AA%E3%82%AC%E3%83%BC%E3%81%AE%E4%BD%9C%E6%88%90\"><\/a><\/h3>\n\n\n\n<p>\u30c8\u30ea\u30ac\u30fc\u3092\u4f5c\u6210\u3057\u3001\u753b\u50cf\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br>\u5148\u8ff0\u306e\u3068\u304a\u308a10\u5206\u304a\u304d\u306e\u30c8\u30ea\u30ac\u30fc\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"739\" height=\"791\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/09\/006_mailTrigger.png\" alt=\"\" class=\"wp-image-6082\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/09\/006_mailTrigger.png 739w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/09\/006_mailTrigger-280x300.png 280w\" sizes=\"auto, (max-width: 739px) 100vw, 739px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"3-\u6761\u4ef6\u4ed8\u304d\u6642\u9593\u4e3b\u5c0e\u578b\u30c8\u30ea\u30ac\u30fc\u7d50\u679c\">(3) \u6761\u4ef6\u4ed8\u304d\u6642\u9593\u4e3b\u5c0e\u578b\u30c8\u30ea\u30ac\u30fc\u7d50\u679c<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/sendmail-with-trigger.html#3-%E6%9D%A1%E4%BB%B6%E4%BB%98%E3%81%8D%E6%99%82%E9%96%93%E4%B8%BB%E5%B0%8E%E5%9E%8B%E3%83%88%E3%83%AA%E3%82%AC%E3%83%BC%E7%B5%90%E6%9E%9C\"><\/a><\/h3>\n\n\n\n<p>\u30c8\u30ea\u30ac\u30fc\u306e\u5b9f\u884c\u306f10\u5206\u9593\u9694\u3067\u884c\u308f\u308c\u307e\u3057\u305f\u304c\u3001\u30e1\u30fc\u30eb\u306f20\u5206\u304a\u304d\u306b\u5c4a\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u30c8\u30ea\u30ac\u30fc\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"825\" height=\"283\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/09\/008_mailTrigger.png\" alt=\"\" class=\"wp-image-6083\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/09\/008_mailTrigger.png 825w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/09\/008_mailTrigger-300x103.png 300w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/09\/008_mailTrigger-768x263.png 768w\" sizes=\"auto, (max-width: 825px) 100vw, 825px\" \/><\/figure>\n\n\n\n<p>\u53d7\u4fe1\u30dc\u30c3\u30af\u30b9\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"581\" height=\"161\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/09\/007_mailTrigger.png\" alt=\"\" class=\"wp-image-6084\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/09\/007_mailTrigger.png 581w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/09\/007_mailTrigger-300x83.png 300w\" sizes=\"auto, (max-width: 581px) 100vw, 581px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u307e\u3068\u3081\">\u307e\u3068\u3081<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/sendmail-with-trigger.html#%E3%81%BE%E3%81%A8%E3%82%81\"><\/a><\/h3>\n\n\n\n<p>\u4eca\u56de\u306e\u4f8b\u3067\u306f\u30c8\u30ea\u30ac\u30fc\u3092\u7528\u3044\u3066\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<br>\u30c8\u30ea\u30ac\u30fc\u306f\u753b\u9762\u4e0a\u3067\u8a2d\u5b9a\u3067\u304d\u308b\u3082\u306e\u3060\u3051\u3092\u7528\u3044\u305f\u305f\u3081\u3001\u6761\u4ef6\u3064\u304d\u306e\u4f8b\uff0820\u5206\u304a\u304d\uff09\u3067\u306f\u305d\u306e\u5236\u7d04\u306e\u305f\u3081\u306b\u5909\u63db\u3084\u8a08\u7b97\u3092\u631f\u307f\u307e\u3057\u305f\u304c\u3001\u5b9f\u306fGAS\u304b\u3089\u4f5c\u6210\u3059\u308b\u30c8\u30ea\u30ac\u30fc\u3067\u3042\u308c\u3070\u3082\u3063\u3068\u7c21\u5358\u306b\u4efb\u610f\u306e\u9593\u9694\u3067\u8a2d\u5b9a\u304c\u3067\u304d\u307e\u3059\u3002 GAS\u304b\u3089\u4f5c\u6210\u3059\u308b\u30c8\u30ea\u30ac\u30fc\u306b\u3064\u3044\u3066\u306e\u5185\u5bb9\u3082\u4eca\u5f8c\u8a18\u4e8b\u3092\u8ffd\u52a0\u3057\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"p-3 mb-4 bg-light rounded-3\">    <div class=\"container-fluid\">\n      <h4 class=\"display-6 fw-bold\"><span id=\"Google_workspace\">Google Cloud\u306e\u5c0e\u5165\u306f\u5f53\u793e\u306b\u3054\u76f8\u8ac7\u304f\u3060\u3055\u3044<\/span><\/h4>\n      <p class=\"col-md-12\">IT\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30bf\u30fc\u3067\u3042\u308bTD SYNNEX\u306fGoogle Cloud\u2122 Partner Award \u3092\u53d7\u8cde\u3059\u308b\u306a\u3069\u3001\u9577\u5e74\u306b\u308f\u305f\u308aGoogle\u2122\u306e\u30b0\u30ed\u30fc\u30d0\u30eb\u8a8d\u5b9a\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30bf\u30fc\u3068\u3057\u3066\u3001\u7dcf\u5408\u7684\u306a Google\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3092\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002\u304a\u5ba2\u69d8\u306b\u3068\u3063\u3066\u6700\u9069\u306a\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u306e\u63d0\u6848\u3084\u5c0e\u5165\u3001\u6d3b\u7528\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n      <a href=\"https:\/\/www.synnex.co.jp\/vender\/google\/inquiry\/\"><button class=\"btn btn-primary btn-lg\" type=\"button\">\u304a\u554f\u3044\u5408\u308f\u305b<\/button><\/a>\n    <\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u4e0a\u3067\u4e00\u89a7\u306b\u306a\u3063\u3066\u3044\u308b\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3078\u3001\u30c8\u30ea\u30ac\u30fc\u3067\u5b9a\u671f\u7684\u306b\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308bGoogleAppsScript\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002 \u6982\u8981 \u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\uff08Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\uff09\u4e0a\u306b\u3042\u308b\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u4e00\u89a7\u3078\u3001&#8230;<\/p>\n","protected":false},"author":3,"featured_media":6261,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"content-type":"","footnotes":""},"categories":[169],"tags":[161],"class_list":["post-6075","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-google","tag-gas"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u30c8\u30ea\u30ac\u30fc\u3067\u5b9a\u671f\u7684\u306b\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308bGAS &#8211; TD SYNNEX BLOG<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\uff08Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\uff09\u4e0a\u306b\u3042\u308b\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u4e00\u89a7\u3078\u3001\u30c8\u30ea\u30ac\u30fc\u3092\u7528\u3044\u3066\u5b9a\u671f\u7684\u306b\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308bGoogleAppsScript\uff08GAS\uff09\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002\u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u3068\u3068\u3082\u306b\u3001\u2460\u300c\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304b\u3089\uff08\u8d77\u52d5\u6642\uff09\u300d\u3092\u7528\u3044\u305f\u4e0d\u5b9a\u671f\u9001\u4fe1\u3001\u2461\u300c\u6642\u9593\u4e3b\u5c0e\u578b\u300d\u3092\u7528\u3044\u305f\u5b9a\u671f\u9001\u4fe1\u3001\u2462\u300c\u6642\u9593\u4e3b\u5c0e\u578b\u300d\u3092\u7528\u3044\u3066\u6761\u4ef6\u3042\u308a\u306e\u5b9a\u671f\u9001\u4fe1\u3001\u3068\u3044\u3046\u6d41\u308c\u3067\u8aac\u660e\u3057\u3066\u3044\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-send-emails-regularly\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u30c8\u30ea\u30ac\u30fc\u3067\u5b9a\u671f\u7684\u306b\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308bGAS &#8211; TD SYNNEX BLOG\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\uff08Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\uff09\u4e0a\u306b\u3042\u308b\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u4e00\u89a7\u3078\u3001\u30c8\u30ea\u30ac\u30fc\u3092\u7528\u3044\u3066\u5b9a\u671f\u7684\u306b\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308bGoogleAppsScript\uff08GAS\uff09\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002\u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u3068\u3068\u3082\u306b\u3001\u2460\u300c\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304b\u3089\uff08\u8d77\u52d5\u6642\uff09\u300d\u3092\u7528\u3044\u305f\u4e0d\u5b9a\u671f\u9001\u4fe1\u3001\u2461\u300c\u6642\u9593\u4e3b\u5c0e\u578b\u300d\u3092\u7528\u3044\u305f\u5b9a\u671f\u9001\u4fe1\u3001\u2462\u300c\u6642\u9593\u4e3b\u5c0e\u578b\u300d\u3092\u7528\u3044\u3066\u6761\u4ef6\u3042\u308a\u306e\u5b9a\u671f\u9001\u4fe1\u3001\u3068\u3044\u3046\u6d41\u308c\u3067\u8aac\u660e\u3057\u3066\u3044\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-send-emails-regularly\/\" \/>\n<meta property=\"og:site_name\" content=\"TD SYNNEX BLOG\" \/>\n<meta property=\"article:published_time\" content=\"2021-09-24T01:50:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-19T07:27:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/09\/code-820275_1280.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"853\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"TD SYNNEX K.K.\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"TD SYNNEX K.K.\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"4\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-send-emails-regularly\/\",\"url\":\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-send-emails-regularly\/\",\"name\":\"\u30c8\u30ea\u30ac\u30fc\u3067\u5b9a\u671f\u7684\u306b\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308bGAS &#8211; TD SYNNEX BLOG\",\"isPartOf\":{\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-send-emails-regularly\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-send-emails-regularly\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/09\/code-820275_1280.jpg\",\"datePublished\":\"2021-09-24T01:50:15+00:00\",\"dateModified\":\"2021-11-19T07:27:56+00:00\",\"author\":{\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/#\/schema\/person\/27a28c43d8bfc7e8087223b26535d233\"},\"description\":\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\uff08Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\uff09\u4e0a\u306b\u3042\u308b\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u4e00\u89a7\u3078\u3001\u30c8\u30ea\u30ac\u30fc\u3092\u7528\u3044\u3066\u5b9a\u671f\u7684\u306b\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308bGoogleAppsScript\uff08GAS\uff09\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002\u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u3068\u3068\u3082\u306b\u3001\u2460\u300c\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304b\u3089\uff08\u8d77\u52d5\u6642\uff09\u300d\u3092\u7528\u3044\u305f\u4e0d\u5b9a\u671f\u9001\u4fe1\u3001\u2461\u300c\u6642\u9593\u4e3b\u5c0e\u578b\u300d\u3092\u7528\u3044\u305f\u5b9a\u671f\u9001\u4fe1\u3001\u2462\u300c\u6642\u9593\u4e3b\u5c0e\u578b\u300d\u3092\u7528\u3044\u3066\u6761\u4ef6\u3042\u308a\u306e\u5b9a\u671f\u9001\u4fe1\u3001\u3068\u3044\u3046\u6d41\u308c\u3067\u8aac\u660e\u3057\u3066\u3044\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-send-emails-regularly\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-send-emails-regularly\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-send-emails-regularly\/#primaryimage\",\"url\":\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/09\/code-820275_1280.jpg\",\"contentUrl\":\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/09\/code-820275_1280.jpg\",\"width\":1280,\"height\":853},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-send-emails-regularly\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\/\/jp.tdsynnex.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Google\",\"item\":\"https:\/\/jp.tdsynnex.com\/blog\/category\/google\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"\u30c8\u30ea\u30ac\u30fc\u3067\u5b9a\u671f\u7684\u306b\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308bGAS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/#website\",\"url\":\"https:\/\/jp.tdsynnex.com\/blog\/\",\"name\":\"TD SYNNEX BLOG\",\"description\":\"IT\u5c02\u9580\u5546\u793e\u304c\u5c4a\u3051\u308b\u60c5\u5831\u30e1\u30c7\u30a3\u30a2\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/jp.tdsynnex.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/#\/schema\/person\/27a28c43d8bfc7e8087223b26535d233\",\"name\":\"TD SYNNEX K.K.\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8c78c73b44737d0e9ea65e8b304502f5d063717571c4be4b0904e52c0d3c3229?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8c78c73b44737d0e9ea65e8b304502f5d063717571c4be4b0904e52c0d3c3229?s=96&d=mm&r=g\",\"caption\":\"TD SYNNEX K.K.\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u30c8\u30ea\u30ac\u30fc\u3067\u5b9a\u671f\u7684\u306b\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308bGAS &#8211; TD SYNNEX BLOG","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\uff08Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\uff09\u4e0a\u306b\u3042\u308b\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u4e00\u89a7\u3078\u3001\u30c8\u30ea\u30ac\u30fc\u3092\u7528\u3044\u3066\u5b9a\u671f\u7684\u306b\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308bGoogleAppsScript\uff08GAS\uff09\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002\u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u3068\u3068\u3082\u306b\u3001\u2460\u300c\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304b\u3089\uff08\u8d77\u52d5\u6642\uff09\u300d\u3092\u7528\u3044\u305f\u4e0d\u5b9a\u671f\u9001\u4fe1\u3001\u2461\u300c\u6642\u9593\u4e3b\u5c0e\u578b\u300d\u3092\u7528\u3044\u305f\u5b9a\u671f\u9001\u4fe1\u3001\u2462\u300c\u6642\u9593\u4e3b\u5c0e\u578b\u300d\u3092\u7528\u3044\u3066\u6761\u4ef6\u3042\u308a\u306e\u5b9a\u671f\u9001\u4fe1\u3001\u3068\u3044\u3046\u6d41\u308c\u3067\u8aac\u660e\u3057\u3066\u3044\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-send-emails-regularly\/","og_locale":"ja_JP","og_type":"article","og_title":"\u30c8\u30ea\u30ac\u30fc\u3067\u5b9a\u671f\u7684\u306b\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308bGAS &#8211; TD SYNNEX BLOG","og_description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\uff08Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\uff09\u4e0a\u306b\u3042\u308b\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u4e00\u89a7\u3078\u3001\u30c8\u30ea\u30ac\u30fc\u3092\u7528\u3044\u3066\u5b9a\u671f\u7684\u306b\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308bGoogleAppsScript\uff08GAS\uff09\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002\u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u3068\u3068\u3082\u306b\u3001\u2460\u300c\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304b\u3089\uff08\u8d77\u52d5\u6642\uff09\u300d\u3092\u7528\u3044\u305f\u4e0d\u5b9a\u671f\u9001\u4fe1\u3001\u2461\u300c\u6642\u9593\u4e3b\u5c0e\u578b\u300d\u3092\u7528\u3044\u305f\u5b9a\u671f\u9001\u4fe1\u3001\u2462\u300c\u6642\u9593\u4e3b\u5c0e\u578b\u300d\u3092\u7528\u3044\u3066\u6761\u4ef6\u3042\u308a\u306e\u5b9a\u671f\u9001\u4fe1\u3001\u3068\u3044\u3046\u6d41\u308c\u3067\u8aac\u660e\u3057\u3066\u3044\u307e\u3059\u3002","og_url":"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-send-emails-regularly\/","og_site_name":"TD SYNNEX BLOG","article_published_time":"2021-09-24T01:50:15+00:00","article_modified_time":"2021-11-19T07:27:56+00:00","og_image":[{"width":1280,"height":853,"url":"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/09\/code-820275_1280.jpg","type":"image\/jpeg"}],"author":"TD SYNNEX K.K.","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"TD SYNNEX K.K.","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"4\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-send-emails-regularly\/","url":"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-send-emails-regularly\/","name":"\u30c8\u30ea\u30ac\u30fc\u3067\u5b9a\u671f\u7684\u306b\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308bGAS &#8211; TD SYNNEX BLOG","isPartOf":{"@id":"https:\/\/jp.tdsynnex.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-send-emails-regularly\/#primaryimage"},"image":{"@id":"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-send-emails-regularly\/#primaryimage"},"thumbnailUrl":"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/09\/code-820275_1280.jpg","datePublished":"2021-09-24T01:50:15+00:00","dateModified":"2021-11-19T07:27:56+00:00","author":{"@id":"https:\/\/jp.tdsynnex.com\/blog\/#\/schema\/person\/27a28c43d8bfc7e8087223b26535d233"},"description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\uff08Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\uff09\u4e0a\u306b\u3042\u308b\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u4e00\u89a7\u3078\u3001\u30c8\u30ea\u30ac\u30fc\u3092\u7528\u3044\u3066\u5b9a\u671f\u7684\u306b\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308bGoogleAppsScript\uff08GAS\uff09\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002\u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u3068\u3068\u3082\u306b\u3001\u2460\u300c\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304b\u3089\uff08\u8d77\u52d5\u6642\uff09\u300d\u3092\u7528\u3044\u305f\u4e0d\u5b9a\u671f\u9001\u4fe1\u3001\u2461\u300c\u6642\u9593\u4e3b\u5c0e\u578b\u300d\u3092\u7528\u3044\u305f\u5b9a\u671f\u9001\u4fe1\u3001\u2462\u300c\u6642\u9593\u4e3b\u5c0e\u578b\u300d\u3092\u7528\u3044\u3066\u6761\u4ef6\u3042\u308a\u306e\u5b9a\u671f\u9001\u4fe1\u3001\u3068\u3044\u3046\u6d41\u308c\u3067\u8aac\u660e\u3057\u3066\u3044\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-send-emails-regularly\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jp.tdsynnex.com\/blog\/google\/gas-send-emails-regularly\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-send-emails-regularly\/#primaryimage","url":"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/09\/code-820275_1280.jpg","contentUrl":"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/09\/code-820275_1280.jpg","width":1280,"height":853},{"@type":"BreadcrumbList","@id":"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-send-emails-regularly\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/jp.tdsynnex.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Google","item":"https:\/\/jp.tdsynnex.com\/blog\/category\/google\/"},{"@type":"ListItem","position":3,"name":"\u30c8\u30ea\u30ac\u30fc\u3067\u5b9a\u671f\u7684\u306b\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308bGAS"}]},{"@type":"WebSite","@id":"https:\/\/jp.tdsynnex.com\/blog\/#website","url":"https:\/\/jp.tdsynnex.com\/blog\/","name":"TD SYNNEX BLOG","description":"IT\u5c02\u9580\u5546\u793e\u304c\u5c4a\u3051\u308b\u60c5\u5831\u30e1\u30c7\u30a3\u30a2","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jp.tdsynnex.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/jp.tdsynnex.com\/blog\/#\/schema\/person\/27a28c43d8bfc7e8087223b26535d233","name":"TD SYNNEX K.K.","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/jp.tdsynnex.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8c78c73b44737d0e9ea65e8b304502f5d063717571c4be4b0904e52c0d3c3229?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8c78c73b44737d0e9ea65e8b304502f5d063717571c4be4b0904e52c0d3c3229?s=96&d=mm&r=g","caption":"TD SYNNEX K.K."}}]}},"_links":{"self":[{"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/posts\/6075","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/comments?post=6075"}],"version-history":[{"count":5,"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/posts\/6075\/revisions"}],"predecessor-version":[{"id":6263,"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/posts\/6075\/revisions\/6263"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/media\/6261"}],"wp:attachment":[{"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/media?parent=6075"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/categories?post=6075"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/tags?post=6075"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}