Title1

Title2

Title3

13-5 寄信函式

 

GmailApp.sendEmail(收信email, 主旨, '', {htmlBody: 信件內容}); 

 

<!-- 
 郵件子樣版 email_order.html
 -->

<div style="width:900px;text-align:center">
	<h2>育將電腦工作室 - 外帶訂餐單</h2>
</div>
<table border="0" cellspacing="3" cellpadding="3" style="width:900px">
	<tbody>
		<tr>
			<th style="width:150px;text-align:center;background-color:#daebf5">訂單編號</th>
			<td style="width:750px;background-color:#ededed">220316-0048</td>
		</tr>

		<tr>
			<th style="width:150px;text-align:center;background-color:#daebf5">訂單時間</th>
			<td style="width:750px;background-color:#ededed">2022-03-16 23:11:06</td>
		</tr>

		<tr>
			<th style="width:150px;text-align:center;background-color:#daebf5">姓名</th>
			<td style="width:750px;background-color:#ededed">郭俊良</td>
		</tr>

		<tr>
			<th style="width:150px;text-align:center;background-color:#daebf5">電話</th>
			<td style="width:750px;background-color:#ededed">1234567890</td>
		</tr>

		<tr>
			<th style="width:150px;text-align:center;background-color:#daebf5">電子郵件</th>
			<td style="width:750px;background-color:#ededed"><a href="mailto:ugm158@gmail.com" target="_blank">ugm158@gmail.com</a></td>
		</tr>

		<tr>
			<th style="width:150px;text-align:center;background-color:#daebf5">備註</th>
			<td style="width:750px;background-color:#ededed">備註 (取餐時間、辣度...)</td>
		</tr>

		<tr>
			<th style="width:150px;text-align:center;background-color:#daebf5">總計金額</th>
			<td style="width:750px;background-color:#ededed">450</td>
		</tr>

	</tbody>
</table>
<table border="0" cellspacing="3" cellpadding="3" style="width:900px">
	<tbody>
		<tr>
			<th style="width:100px;text-align:center;background-color:#daebf5">順序</th>
			<th style="width:400px;text-align:center;background-color:#daebf5">商品名稱</th>
			<th style="width:100px;text-align:center;background-color:#daebf5">數量</th>
			<th style="width:100px;text-align:center;background-color:#daebf5">單位</th>
			<th style="width:100px;text-align:center;background-color:#daebf5">單價</th>
			<th style="width:100px;text-align:center;background-color:#daebf5">小計</th>
		</tr>
		<tr>
			<td style="background-color:#ededed;text-align:center">1</td>
			<td style="background-color:#ededed;text-align:left">A01</td>
			<td style="background-color:#ededed;text-align:right">1</td>
			<td style="background-color:#ededed;text-align:center">包</td>
			<td style="background-color:#ededed;text-align:right">100</td>
			<td style="background-color:#ededed;text-align:right">100</td>
		</tr>
		<tr>
			<td style="background-color:#ededed;text-align:center">2</td>
			<td style="background-color:#ededed;text-align:left">A02</td>
			<td style="background-color:#ededed;text-align:right">1</td>
			<td style="background-color:#ededed;text-align:center">打</td>
			<td style="background-color:#ededed;text-align:right">350</td>
			<td style="background-color:#ededed;text-align:right">350</td>
		</tr>
	</tbody>
</table>
<div style="width:900px;text-align:center">
	本信件為自動回覆,請勿回信,謝謝!
</div>