不是
mail (string to,sting subject,string message,string [additional_header])
实例
mail ($receiver,$subject,$message,"from: webmaster@$SERVER_NAME\nreply-To:webmaster@$SERVER_NAME\nXMailer:/PHP/".phpversion);
第四个字符串只是一个额外的标题,它添加到标题的后面,所以,不一定必须得是email.根据函数的实例,你受到的信是[email protected]就很容易理解了

解决方案 »

  1.   

    那如果我想在收到信后发件人那一栏只显示sender,该怎么做??
      

  2.   

    这我倒没有试过
    那你只写sender吧
      

  3.   

    只写sender就会被显示成[email protected],
    我就是想解决这个问题
      

  4.   

    那好想不行吧,没有看到它的解释吗?是头信息的附加啊
    要不你省去from:
    第四个 字符串只写sender
      

  5.   

    我试了一下,那样sender就变成内容了,呵
      

  6.   

    在php.ini中改就可以了
    [mail function]
    SMTP =127.0.0.1 ;for win32 only
    sendmail_from [email protected] ;for win32 only
    ;sendmail_path =