信件內容及網頁內容更新

This commit is contained in:
ericli1018
2025-06-26 19:20:25 +08:00
parent 6a4eec7fb4
commit ce4c781d02
16 changed files with 188 additions and 110 deletions

View File

@ -274,18 +274,19 @@ class MetabolismFillFormController extends Controller
DB::commit();
try {
Mail::to($request->input('email'))->send(new EventNotifyMail([
"title" => "符合代謝新收案 早鳥報名最划算 登記成功",
"body" => "登記資料:"
Mail::to($request->input('email'))->send(new EventNotifyMail(
'桃園市政府衛生局114年桃園市健康管理計畫「符合代謝新收案早鳥報名最划算登記成功信件',
[
"title" => "符合代謝新收案,早鳥報名最划算 登記成功!",
"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) {
}