RE: problem with php function mail() on fc4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx [mailto:fedora-list-bounces@xxxxxxxxxx] On Behalf Of ?? ?
Sent: Friday, July 15, 2005 4:14 PM
To: fedora-list@xxxxxxxxxx
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@xxxxxxxxxxxx", "没有主题", $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@xxxxxxxxxxxx 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!?
雅虎免费G邮箱-中国第一绝无垃圾邮件骚扰超大邮箱


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux