php邮件功能问题,没有接收电子邮件,zen_mail

时间:2016-07-10 22:50:52

标签: php phpmailer

参考:https://www.zen-cart.com/showthread.php?64003-zen_mail-How-does-it-work

我修改了以下行中的php文件:

function sub_button() {

$process_button_string = zen_draw_getuserinfo_field('usercasenumber_', $_POST['u_case'])

}
return $process_button_string;
try {
zen_mail("xxxxxx", "xxxxxx@gmail.com","xxxxxxxx", $process_button_string, W_NAME, EMAIL_FROM);
} catch (Exception $e) {

}

  }

但仍然没有收到完成在该页面上提交的任何电子邮件。一切顺利。我对php不是很好,只是添加了以下部分:

尝试{     zen_mail(“xxxxxx”,“xxxxxx @ gmail.com”,“xxxxxxxx”,$ process_button_string,W_NAME,EMAIL_FROM); } catch(Exception $ e){

}

我做错了吗?请帮忙

1 个答案:

答案 0 :(得分:0)

我解决了! :)

function sub_button() {
$process_button_string = zen_draw_getuserinfo_field('usercasenumber_', $_POST['u_case']);

}
$msg = $_POST['u_case'];
try {
zen_mail("xxxxxx", "xxxxxx@gmail.com","xxxxxxxx", 
$msg, W_NAME, EMAIL_FROM);
} catch (Exception $e) {

}
return $process_button_string;
  }