正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -110,7 +110,7 @@ class SendJob { | @@ -110,7 +110,7 @@ class SendJob { | ||
110 | if(empty($to['name'])){ | 110 | if(empty($to['name'])){ |
111 | $to['name'] = explode('@',$to['email'])[0]??''; | 111 | $to['name'] = explode('@',$to['email'])[0]??''; |
112 | } | 112 | } |
113 | - $data['maildata']['body'] = str_replace('{customer_name}', ucwords($to['name']), $data['maildata']['body']); | 113 | + $data['maildata']['body'] = str_replace(['{customer_name}','{name}'], ucwords($to['name']), $data['maildata']['body']); |
114 | $result = \Lib\Mail\MailFun::sendEmail($data['maildata'],$email); | 114 | $result = \Lib\Mail\MailFun::sendEmail($data['maildata'],$email); |
115 | _echo('邮件发送 '.json_encode($result,JSON_UNESCAPED_UNICODE)); | 115 | _echo('邮件发送 '.json_encode($result,JSON_UNESCAPED_UNICODE)); |
116 | // 插入紫薯精 | 116 | // 插入紫薯精 |
-
请 注册 或 登录 后发表评论