参考: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){
}
我做错了吗?请帮忙
答案 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;
}