Re: Send-Mail bug in 4.0.4?

From: Date: Fri, 26 Mar 2004 09:35:23 +0000
Subject: Re: Send-Mail bug in 4.0.4?
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-13074@lists.php.net to get a copy of this message
Bottom posting... Galbreath, Mark A wrote:
Mail, registration, and private messaging all throw an exception because of line 227 in includes/emailer.php: $result = @mail($to, $this->subject, preg_replace("#(?<!\r)\n#s", "\n", $this->msg), $this->extra_headers); Anybody have a fix for this? My "work around" is to comment out the message_die block, and things start working again. Mark
    -----Original Message-----
    *From:* Galbreath, Mark A
    *Sent:* Thursday, March 25, 2004 1:19 PM
    *To:* 'Vicky McIntyre'; 'php-install@lists.php.net'
    *Subject:* RE: [PHP-INSTALL] getting PHP to work with Apache 2 on
    Windows 2000 server
    Do you have the following in your [APACHE_HOME]/conf/http.config file?
     
    LoadFile "C:/Apache2/bin/php4ts.dll"
    LoadModule php4_module modules/php4apache2.dll
    AddType application/x-httpd-php .php
     
    And the corresponding files where this points to?
     
    Mark
        -----Original Message-----
        *From:* Vicky McIntyre [mailto:veronica_mcintyre@yahoo.com]
        *Sent:* Thursday, March 25, 2004 11:56 AM
        *To:* php-install@lists.php.net
        *Subject:* [PHP-INSTALL] getting PHP to work with Apache 2 on
        Windows 2000 server
        Hello,
         
        I've followed all kinds of different instructions on getting
        it to work as a module under Apache 2 but so far I get only
        two results when I access the test.php through a browser.
         
        1.  it asks if I want to download a file.
        2.  it shows the code <? php
                                            phpinfo();
                                        ?>
         
        I cannot get it to show the page it is supposed to. I can't
        figure out what is wrong.
         
        Please Help!
You do not show us a "message_die" block. You have a @ sign before mail to surpress any error message. If you remove this (at least for now) then you will see the error that mail wants to tell you. Seeing the actual error message may help track down your problem.
Have you set your computer up to send email? From your earlier post your are on MS Windows. Have you set up a smtp server on that computer, or have you set the SMTP setting in php.ini to an email server that will let you send email? Your smtp server should be configured to accept email from the sendmail_from entry you have configured in php.ini. If it is set up properly and you have tested sending email outside of PHP then what are the values of the parameters to the mail function in this example? More information needed please. HTH Chris

« previous php.install (#13074) next »