problem with php function mail() on fc4

milver nisay mnisay at aim-consultants.com
Fri Jul 15 15:31:28 UTC 2005


i believe this is email server issue which by default allows relay to
localhost only.

If you are using sendmail, check out sendmail.mc for 127.0.0.1 and uncomment
it

Then recompile, that should do the it.

  _____  

From: fedora-list-bounces at redhat.com [mailto:fedora-list-bounces at redhat.com]
On Behalf Of ?? ?
Sent: Friday, July 15, 2005 4:14 PM
To: fedora-list at redhat.com
Subject: problem with php function mail() on fc4

 

This is the first time I use mail() in php to send email,but failed,my
program is

<?
$message="abcdefghijklmnopqrstuvwxyz";

$a=mail("afcn0 at yahoo.com.cn", "没有主题", $message, "From: Mailer:PHP/");
if ($a)
echo "ok";
else
echo "fail";

?> 

on fc4 it show ok,but i didn't recieve any emails,
and on win xp sp2 i also failed it tellme "Warning: mail(): SMTP server
response: 550 5.7.1 Unable to relay for afcn0 at yahoo.com.cn in
d:\usr\www\html\aaa1.php on line 4
fail "

tell me why,and how to use this function to send mail,btw i close all
firewalls

  _____  

DO YOU YAHOO!?
 <http://cn.mail.yahoo.com/?id=77071> 雅虎免费G邮箱-中国第一绝无垃圾邮件骚
扰超大邮箱 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20050715/c43dc0fa/attachment-0001.htm>


More information about the fedora-list mailing list