信件內容及網頁內容更新
This commit is contained in:
@ -347,18 +347,20 @@ class ImprovedHealthFillFormController extends Controller
|
||||
DB::commit();
|
||||
|
||||
try {
|
||||
Mail::to($request->input('email'))->send(new EventNotifyMail([
|
||||
"title" => "健康達標GO 大獎汽車不是夢 登記成功!",
|
||||
"body" => "登記資料:"
|
||||
."\n流水號: B-".str_pad($eventItem->id, 6, '0', STR_PAD_LEFT)
|
||||
|
||||
Mail::to($request->input('email'))->send(new EventNotifyMail(
|
||||
'桃園市政府衛生局114年桃園市健康管理計畫「健康達標GO,大獎汽車不是夢」登記成功信件',
|
||||
[
|
||||
"title" => "健康達標GO,大獎汽車不是夢 登記成功!",
|
||||
"body" => "我們將於3個工作天內進行審核您的資料,並通知您審核結果,敬請留意收信。"
|
||||
."\n\n登記資料:"
|
||||
."\n流水號: A-".str_pad($eventItem->id, 6, '0', STR_PAD_LEFT)
|
||||
."\n就醫院所:".$request->input('hospital_name')
|
||||
."\n姓名:".$request->input('name')
|
||||
."\n身份證字號:".substr($request->input('twid'),0,2)."xxxx".substr($request->input('twid'),-4)
|
||||
."\n行動電話:".$request->input('phone')
|
||||
."\n電子信箱:".$request->input('email')
|
||||
."\n收件地址:".$request->input('address')
|
||||
."\n姓名:".(mb_strlen($request->input('name')) > 2 ? mb_substr($request->input('name'),0,1)."*".mb_substr($request->input('name'),-1) : mb_substr($request->input('name'),0,1)."*")
|
||||
."\n身份證字號:".substr($request->input('twid'),0,2)."****".substr($request->input('twid'),-4)
|
||||
."\n電話號碼:".substr($request->input('phone'),0,2)."****".substr($request->input('phone'),-4)
|
||||
,
|
||||
]));
|
||||
]));
|
||||
} catch (Exception $ex) {
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user