$arr['mail_body']= "name:".$_POST['txtName']." City:".$_POST['txtCity']." Message:".$_POST['txtMessage']." Country:".$_POST['txtCountry']." Tel:".$_POST['txtTel']." Email:".$_POST['txtEmail']; //邮件正文
php连接字符串用"."号

解决方案 »

  1.   

    em_local_send($arr);
    header("location:test.php");加在后面这里,
      

  2.   

    header("location:test.php");这句加上 后报错啊 Warning: Cannot modify header information - headers already sent by (output started at /home/p14fpthc/public_html/sendEmail.php:2)
      

  3.   

    页面代码都在上面呢 我不知道 哪句话是输出 我对php十窍不通
      

  4.   

    em_local_send($arr);
    echo '<script language="javascript">';
    echo 'window.location.href="test.php"';
    echo '</script>';改成这样。