Re: problem with php function mail() on fc4

From: Paul Howarth (paul_at_city-fan.org)
Date: 07/15/05

  • Next message: Mike McCarty: "Re: Floppy written in CentOS won't mount in FC3"
    Date: Fri, 15 Jul 2005 16:18:31 +0100
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    
    

    维斯 苏 wrote:
    > This is the first time I use mail() in php to send email,but failed,my
    > program is
    > <?
    > $message="abcdefghijklmnopqrstuvwxyz";
    > $a=mail("afcn0@yahoo.com.cn <mailto:afcn0@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,

    Look in the mail server's log files to see what happened to the mail.

    If there is nothing in the mail server log file relating to this mail,
    the mail may never have been sent - are you using SELinux?

    > and on win xp sp2 i also failed it tellme "*Warning*: mail(): SMTP
    > server response: 550 5.7.1 Unable to relay for afcn0@yahoo.com.cn in
    > *d:\usr\www\html\aaa1.php* on line *4*

    The SMTP server you are trying to use is configured not to relay mail
    from your Windows XP machine.

    Paul.

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Mike McCarty: "Re: Floppy written in CentOS won't mount in FC3"

    Relevant Pages

    • Re: [PHP] mail() only working with php-cli
      ... Yes I also analyzed the log files from apache, but all they are telling me ... is that I am accesing the file "mail.php" with my browser. ... Since you can execute the PHP CLI binary, you have SSH access to the machine. ...
      (php.general)
    • Re: download counter?
      ... I think you can make simple php application for count the download, ... I'm trying to create a download counter for individual files on a web ... Right now I'm using Webalizer ... to just read the log files and see how many times the files I'm ...
      (comp.lang.php)
    • how do you track visitors? php cookies?
      ... Logfiles stats which come with every web hosting, have little metrics ... I thought to use php and cookies to track returning visitors, ... see that all pro solutions use javascript to set cookies. ... probably the best option is to read log files for server metrics such ...
      (comp.lang.php)
    • Re: OT - the incredible shrinking hard drive
      ... The first time the HD ran out of space, ... >All the Inetpub/Mail folder are empty too. ... Look at running services and see ... at the log files and see what's connecting and being requested. ...
      (microsoft.public.inetserver.iis)
    • Re: [SLE] SOLVED Apache 2.2 w/ PHP 5.1.2 and PostGreSQL 8.1
      ... After looking through the log files, I found that Novell's Apparmor (using ... but not in the php or apache log. ... A brief visit to Google leads me to believe that PostGreSQL support isn't ... It seems the most common response to 'What does "PHP Fatal error: ...
      (SuSE)