<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	〈Google 表單，提交後系統自動寄送回覆通知 email〉的留言	</title>
	<atom:link href="https://www.letswrite.tw/gas-auto-epaper/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.letswrite.tw/gas-auto-epaper/</link>
	<description>前端工程師 August 的學習筆記 -- solving problems, in simple ways.</description>
	<lastBuildDate>Thu, 27 Feb 2025 14:33:52 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>
	<item>
		<title>
		留言者: Vic		</title>
		<link>https://www.letswrite.tw/gas-auto-epaper/#comment-310</link>

		<dc:creator><![CDATA[Vic]]></dc:creator>
		<pubDate>Fri, 22 Oct 2021 13:10:45 +0000</pubDate>
		<guid isPermaLink="false">http://localhost:3001/?p=1176#comment-310</guid>

					<description><![CDATA[您好, 關於夾帶附件可以直接用雲端硬碟檔案的id這部分, 我點了連結icon出現的不是像範例
open?id=xxxxx
而是/document/d/.../edit?usp=sharing&#038;ouid=...&#038;resourcekey=....=true&#038;sd=true這樣的 請問該怎麼解決呢? 謝謝您]]></description>
			<content:encoded><![CDATA[<p>您好, 關於夾帶附件可以直接用雲端硬碟檔案的id這部分, 我點了連結icon出現的不是像範例<br />
open?id=xxxxx<br />
而是/document/d/&#8230;/edit?usp=sharing&amp;ouid=&#8230;&amp;resourcekey=&#8230;.=true&amp;sd=true這樣的 請問該怎麼解決呢? 謝謝您</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		留言者: 蕭小姐		</title>
		<link>https://www.letswrite.tw/gas-auto-epaper/#comment-285</link>

		<dc:creator><![CDATA[蕭小姐]]></dc:creator>
		<pubDate>Tue, 17 Aug 2021 10:51:43 +0000</pubDate>
		<guid isPermaLink="false">http://localhost:3001/?p=1176#comment-285</guid>

					<description><![CDATA[回覆的對象為「&lt;a href=&quot;https://www.letswrite.tw/gas-auto-epaper/#comment-233&quot;&gt;August&lt;/a&gt;」。

我是出現&lt;span&gt;var data = datas.namedValues;這一行的錯誤，請問是為什麼呢？&lt;/span&gt;]]></description>
			<content:encoded><![CDATA[<p>回覆的對象為「<a href="https://www.letswrite.tw/gas-auto-epaper/#comment-233">August</a>」。</p>
<p>我是出現<span>var data = datas.namedValues;這一行的錯誤，請問是為什麼呢？</span></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		留言者: jeff chan		</title>
		<link>https://www.letswrite.tw/gas-auto-epaper/#comment-260</link>

		<dc:creator><![CDATA[jeff chan]]></dc:creator>
		<pubDate>Sat, 10 Jul 2021 08:42:21 +0000</pubDate>
		<guid isPermaLink="false">http://localhost:3001/?p=1176#comment-260</guid>

					<description><![CDATA[您好，請教一下:可能是我自己太笨拙了，一直無法完成html。
因為我只想在google表單提交時，填表者可以收到一封回信，內文想帶圖片(可以有連結網站)
另外附加檔案讓填表者收到。
請問~一定要用html才能完成嗎？我看到有簡易版，只有在程式碼填下面語法， 我試過可以簡單回信，但無法附加檔案。是否可以完成想要樣式，卻只要用程式碼即可？
不好意思，麻煩了。謝謝

function sendMails(e) {
var timestamp = e.values[0];
var name = e.values[1];
var mail = e.values[2];
MailApp.sendEmail
(mail,&quot;您好！&quot;+name,
name+&quot;您好!此封為回覆信測試。&quot;);
}]]></description>
			<content:encoded><![CDATA[<p>您好，請教一下:可能是我自己太笨拙了，一直無法完成html。<br />
因為我只想在google表單提交時，填表者可以收到一封回信，內文想帶圖片(可以有連結網站)<br />
另外附加檔案讓填表者收到。<br />
請問~一定要用html才能完成嗎？我看到有簡易版，只有在程式碼填下面語法， 我試過可以簡單回信，但無法附加檔案。是否可以完成想要樣式，卻只要用程式碼即可？<br />
不好意思，麻煩了。謝謝</p>
<p>function sendMails(e) {<br />
var timestamp = e.values[0];<br />
var name = e.values[1];<br />
var mail = e.values[2];<br />
MailApp.sendEmail<br />
(mail,&#8221;您好！&#8221;+name,<br />
name+&#8221;您好!此封為回覆信測試。&#8221;);<br />
}</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		留言者: June		</title>
		<link>https://www.letswrite.tw/gas-auto-epaper/#comment-258</link>

		<dc:creator><![CDATA[June]]></dc:creator>
		<pubDate>Wed, 07 Jul 2021 02:46:06 +0000</pubDate>
		<guid isPermaLink="false">http://localhost:3001/?p=1176#comment-258</guid>

					<description><![CDATA[你好，我想碰到一直跳出 Exception 的問題
Exception: You do not have permission to call SpreadsheetApp.getActiveRange.
請問可以怎麼解決？我的表單設計填答的時候有收集使用者信箱]]></description>
			<content:encoded><![CDATA[<p>你好，我想碰到一直跳出 Exception 的問題<br />
Exception: You do not have permission to call SpreadsheetApp.getActiveRange.<br />
請問可以怎麼解決？我的表單設計填答的時候有收集使用者信箱</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		留言者: cocowow		</title>
		<link>https://www.letswrite.tw/gas-auto-epaper/#comment-251</link>

		<dc:creator><![CDATA[cocowow]]></dc:creator>
		<pubDate>Sat, 03 Jul 2021 15:34:42 +0000</pubDate>
		<guid isPermaLink="false">http://localhost:3001/?p=1176#comment-251</guid>

					<description><![CDATA[想詢問如果有些資料是在excel進行運算而非使用者留的資料，那要怎麼嵌入到html裡面?]]></description>
			<content:encoded><![CDATA[<p>想詢問如果有些資料是在excel進行運算而非使用者留的資料，那要怎麼嵌入到html裡面?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		留言者: Brian		</title>
		<link>https://www.letswrite.tw/gas-auto-epaper/#comment-238</link>

		<dc:creator><![CDATA[Brian]]></dc:creator>
		<pubDate>Fri, 04 Jun 2021 06:21:15 +0000</pubDate>
		<guid isPermaLink="false">http://localhost:3001/?p=1176#comment-238</guid>

					<description><![CDATA[您好，感謝用心分享！
不好意思，另想請教一下，在啟動完現有專案後，會一直出現&lt;span&gt;SyntaxError: Unexpected number at onSubmit，不曉得該如何克服呢，謝謝！&lt;/span&gt;]]></description>
			<content:encoded><![CDATA[<p>您好，感謝用心分享！<br />
不好意思，另想請教一下，在啟動完現有專案後，會一直出現<span>SyntaxError: Unexpected number at onSubmit，不曉得該如何克服呢，謝謝！</span></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		留言者: Adrian		</title>
		<link>https://www.letswrite.tw/gas-auto-epaper/#comment-231</link>

		<dc:creator><![CDATA[Adrian]]></dc:creator>
		<pubDate>Thu, 27 May 2021 02:56:16 +0000</pubDate>
		<guid isPermaLink="false">http://localhost:3001/?p=1176#comment-231</guid>

					<description><![CDATA[請問一下function onSubmit(datas) 當中偵錯出現 var data = datas.namedValues;   var replyEmail = data[&#039;電子郵件Email&#039;][0];都出錯是甚麼問題?]]></description>
			<content:encoded><![CDATA[<p>請問一下function onSubmit(datas) 當中偵錯出現 var data = datas.namedValues;   var replyEmail = data[&#8216;電子郵件Email&#8217;][0];都出錯是甚麼問題?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		留言者: grownup		</title>
		<link>https://www.letswrite.tw/gas-auto-epaper/#comment-192</link>

		<dc:creator><![CDATA[grownup]]></dc:creator>
		<pubDate>Fri, 05 Mar 2021 11:59:50 +0000</pubDate>
		<guid isPermaLink="false">http://localhost:3001/?p=1176#comment-192</guid>

					<description><![CDATA[我刪改成我要運行的程式碼,
跑起來結果&lt;span&gt;SyntaxError: Unexpected token &#039;;&#039;   at onSubmit&lt;/span&gt;
問題可能出在哪邊呢?
如果表單標頭要用到1.這類的,我可以怎麼改程式呢]]></description>
			<content:encoded><![CDATA[<p>我刪改成我要運行的程式碼,<br />
跑起來結果<span>SyntaxError: Unexpected token &#8216;;&#8217;   at onSubmit</span><br />
問題可能出在哪邊呢?<br />
如果表單標頭要用到1.這類的,我可以怎麼改程式呢</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		留言者: poweryll		</title>
		<link>https://www.letswrite.tw/gas-auto-epaper/#comment-150</link>

		<dc:creator><![CDATA[poweryll]]></dc:creator>
		<pubDate>Sun, 13 Dec 2020 06:02:45 +0000</pubDate>
		<guid isPermaLink="false">http://localhost:3001/?p=1176#comment-150</guid>

					<description><![CDATA[回覆的對象為「&lt;a href=&quot;https://www.letswrite.tw/gas-auto-epaper/#comment-116&quot;&gt;August&lt;/a&gt;」。

上次提及
以使用者經驗來說應該是在不同答案（需求），通知不同單位的負責窗口，例如選貓通知貓店，選狗通知狗店，讓負責單位去主動解決使用者的需求，比較符合消費者行為。

利用 &#160;if、else 自己做了測試結果可行
來分享一下
過程如下

&#160;var ss = SpreadsheetApp.getActiveSpreadsheet();
&#160;var sheet = SpreadsheetApp.getActiveSheet();&#160;&#160;&#160;&#160;
&#160;var lastRow = sheet.getLastRow();
&#160;var range = sheet.getRange(lastRow,2); //location 的位置
&#160;var location = range.getValue(); //取得數值
&#160;if (location === &#039;cat&#039;){
&#160;&#160;adminEmail = &#039;staff-cat@gmail.com&#039; //自訂email
&#160;}
&#160;else if (location === &#039;dog&#039;){
&#160;&#160;adminEmail = &#039;staff-dog@gmail.com&#039; &lt;span&gt;//自訂email&lt;/span&gt;
&#160;}&#160;
&#160;else if (location === &#039;mouse&#039;) {
&#160;&#160;adminEmail = &#039;staff-mouse@gmail.com&#039; &lt;span&gt;//自訂email&lt;/span&gt;
&#160;}]]></description>
			<content:encoded><![CDATA[<p>回覆的對象為「<a href="https://www.letswrite.tw/gas-auto-epaper/#comment-116">August</a>」。</p>
<p>上次提及<br />
以使用者經驗來說應該是在不同答案（需求），通知不同單位的負責窗口，例如選貓通知貓店，選狗通知狗店，讓負責單位去主動解決使用者的需求，比較符合消費者行為。</p>
<p>利用 &nbsp;if、else 自己做了測試結果可行<br />
來分享一下<br />
過程如下</p>
<p>&nbsp;var ss = SpreadsheetApp.getActiveSpreadsheet();<br />
&nbsp;var sheet = SpreadsheetApp.getActiveSheet();&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;var lastRow = sheet.getLastRow();<br />
&nbsp;var range = sheet.getRange(lastRow,2); //location 的位置<br />
&nbsp;var location = range.getValue(); //取得數值<br />
&nbsp;if (location === &#8216;cat&#8217;){<br />
&nbsp;&nbsp;adminEmail = &#8216;staff-cat@gmail.com&#8217; //自訂email<br />
&nbsp;}<br />
&nbsp;else if (location === &#8216;dog&#8217;){<br />
&nbsp;&nbsp;adminEmail = &#8216;staff-dog@gmail.com&#8217; <span>//自訂email</span><br />
&nbsp;}&nbsp;<br />
&nbsp;else if (location === &#8216;mouse&#8217;) {<br />
&nbsp;&nbsp;adminEmail = &#8216;staff-mouse@gmail.com&#8217; <span>//自訂email</span><br />
&nbsp;}</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		留言者: huaaaaa		</title>
		<link>https://www.letswrite.tw/gas-auto-epaper/#comment-136</link>

		<dc:creator><![CDATA[huaaaaa]]></dc:creator>
		<pubDate>Tue, 03 Nov 2020 15:52:30 +0000</pubDate>
		<guid isPermaLink="false">http://localhost:3001/?p=1176#comment-136</guid>

					<description><![CDATA[&lt;span&gt;謝謝大大提供這麼實用的說明與示範&lt;/span&gt;

&lt;span&gt;想請教一個問題是，我在練習的時候，跑到&lt;/span&gt;&lt;span&gt;var&lt;/span&gt; data &lt;span&gt;=&lt;/span&gt; datas.&lt;span&gt;namedValues&lt;/span&gt;;
會顯示&lt;span&gt;Cannot read property &#039;namedValues&#039; of undefined&lt;/span&gt;是為什麼呢？]]></description>
			<content:encoded><![CDATA[<p><span>謝謝大大提供這麼實用的說明與示範</span></p>
<p><span>想請教一個問題是，我在練習的時候，跑到</span><span>var</span> data <span>=</span> datas.<span>namedValues</span>;<br />
會顯示<span>Cannot read property &#8216;namedValues&#8217; of undefined</span>是為什麼呢？</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		留言者: poweryll		</title>
		<link>https://www.letswrite.tw/gas-auto-epaper/#comment-115</link>

		<dc:creator><![CDATA[poweryll]]></dc:creator>
		<pubDate>Wed, 02 Sep 2020 06:55:17 +0000</pubDate>
		<guid isPermaLink="false">http://localhost:3001/?p=1176#comment-115</guid>

					<description><![CDATA[回覆的對象為「&lt;a href=&quot;https://www.letswrite.tw/gas-auto-epaper/#comment-114&quot;&gt;August&lt;/a&gt;」。

用不同的寄件者信箱寄信，這個方式不太了解用途，比較少用到的功能吧！？是要讓使用者再回覆去做其他動作嗎？再讓使用者去回覆信件，在行銷上不太合消費者行為的方式。
以使用者經驗來說應該是在不同答案（需求），通知不同單位的負責窗口，例如選貓通知貓店，選狗通知狗店，讓負責單位去主動解決使用者的需求，比較符合消費者行為。
以上拙見。]]></description>
			<content:encoded><![CDATA[<p>回覆的對象為「<a href="https://www.letswrite.tw/gas-auto-epaper/#comment-114">August</a>」。</p>
<p>用不同的寄件者信箱寄信，這個方式不太了解用途，比較少用到的功能吧！？是要讓使用者再回覆去做其他動作嗎？再讓使用者去回覆信件，在行銷上不太合消費者行為的方式。<br />
以使用者經驗來說應該是在不同答案（需求），通知不同單位的負責窗口，例如選貓通知貓店，選狗通知狗店，讓負責單位去主動解決使用者的需求，比較符合消費者行為。<br />
以上拙見。</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		留言者: poweryll		</title>
		<link>https://www.letswrite.tw/gas-auto-epaper/#comment-112</link>

		<dc:creator><![CDATA[poweryll]]></dc:creator>
		<pubDate>Mon, 31 Aug 2020 06:09:48 +0000</pubDate>
		<guid isPermaLink="false">http://localhost:3001/?p=1176#comment-112</guid>

					<description><![CDATA[回覆的對象為「&lt;a href=&quot;https://www.letswrite.tw/gas-auto-epaper/#comment-109&quot;&gt;August&lt;/a&gt;」。

令人驚訝的超快速反饋，敬佩！]]></description>
			<content:encoded><![CDATA[<p>回覆的對象為「<a href="https://www.letswrite.tw/gas-auto-epaper/#comment-109">August</a>」。</p>
<p>令人驚訝的超快速反饋，敬佩！</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
