Re: Cannot use mail() in IE, only works in a debugger--help
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: Cannot use mail() in IE, only works in a debugger--help

From: Jerry Stuckle <jstucklex@attglobal.net>
Date: Wed Oct 05 2005 - 18:22:30 CEST

baustin75@gmail.com wrote:
> I really appreciate everyones help with my PHP problem. I still cannot
> get the darn thing to work though. My PHP editor/debugger is using the
> same php.exe and php.ini as my web server. I also wanted to let you
> know that all of my PHP code works perfectly when I have a html form
> and a PHP script to handle the form, all except for mail(). Only when
> I debug and run the exact same code through the PHP editor does the
> mail() command work. Ex: Lets say I have a form to check the strlen()
> of a text box and then a mail command in the next line of code. The
> strlen will execute with no problem but as soon as it hits the mail
> command it fails. Thanks for any help or suggestions you may have.
>

Have you checked your php.log file? There should be some error message
in it as to why it failed. (You do have log_errors=on and
error_reporting=all in your php.ini file, don't you?)

Also, I found running on Windows I had to have sendmail_from set in the
php.ini file, even if I specified From: in the header.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Received on Tue Oct 18 02:32:20 2005