mail函数,发送者邮箱看不到,而是CP名@主机名
|
|
- for example:
- {
- <?php
- $headers .="Reply-To:test@g.cn\r\n";
- $headers .="content-type: text/html;\r\n charset="utf-8"\r\n";
- mail("my@abc.coml", "test", "for example",$headers)
- ?>
复制代码 在lp空间里面使用上面代码,看到的是 "####@####.lunarmania.com"
而不是 "test@g.cn"
发送者邮箱看不到,而是CP名@主机名
哪个知道原因吗?
[ 本帖最后由 sunnynet 于 2008-8-18 09:22 PM 编辑 ] |
|
|
|
|
|
|
|
|
|
|
sunnynet
发表于 2008-8-19 14:41:12
|
显示全部楼层
晕,, 过了 半天,没人回答`
没看懂,还是不知道? |
|
|
|
|
|
|
|
|
|
|
sunny_clans
发表于 2008-8-19 15:15:38
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
sunnynet
发表于 2008-8-19 16:58:43
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
xycah1
发表于 2008-8-19 20:03:48
|
显示全部楼层
mail 函数第4个可选的参数,你直接写 "From:test@g.cn"
看看能行不 |
|
|
|
|
|
|
|
|