本帖最后由 wainguo 于 2009-06-07 21:58:42 编辑

解决方案 »

  1.   

    直接用mail命令在webjoin账户下发信到gmail邮箱是可以成功的。
      

  2.   

    请问直接用mail怎么写?我照着php的那种写法,说我sntex错。
      

  3.   

    知道怎么写了,我试了,可还是不行,说“transient parse error”.
      

  4.   

    使用这个最简单的发信脚本测试,注意目的地址改成一个实际存在的地址
    <?php$txt = "First line of text\nSecond line of text";
    $sep = "\x0D\x0A";
    $headers = "Content-Type: text/plain; charset=" .$charset . $sep;
    $headers .= "From: [email protected]"
    mail("[email protected]","My subject",$txt, $headers);
    ?>
      

  5.   

    我说的mail命令是指:linux下的shell执行mail。这种方式的是可以成功的。
    但用php脚本的却不能成功。
    继续寻求帮助。
      

  6.   

    已经解决了,原因应该是php.ini中配置sendmail的path是没有加-t -i参数。