Vin*_*gen 2 email contact opencart
我通过联系查询表只收到用户的消息。我正在尝试在查询电子邮件中添加他们的姓名和电子邮件。我没有得到要更改的确切文件。
有谁知道如何做到这一点?
在目录/控制器/信息/contact.php 中 找到该行
$mail->setText(strip_tags(html_entity_decode($this->request->post['enquiry'], ENT_QUOTES, 'UTF-8')));
Run Code Online (Sandbox Code Playgroud)
替换$this->request->post['enquiry']为$msg_body
在此行之前添加,以下行
$msg_body = "Sender's Name : ".$this->request->post['name']." Sender's email : ".$this->request->post['email']. " Enquiry :".$this->request->post['enquiry'];
Run Code Online (Sandbox Code Playgroud)