For Programmers: Free Programming Magazines  


Home > Archive > PHP Installation > March 2004 > Re: [PHP-INSTALL] Send-Mail bug in 4.0.4?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-INSTALL] Send-Mail bug in 4.0.4?
Chris Hewitt

2004-03-26, 11:23 pm

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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com