PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I am have a problem using the PHP mail function. First of, if I have no destination in the mail function I get a message saying "Bad Mail Address". If I enter a valid email address the PHP session hangs and I have to close the browser down and start again.PHP is running on Win2K with Apache and I know I have the correct setting for SMTP and sendmail_from. There is no value for sendmail_path (as using Win2K) and I can not find where you would set the SMTP port number, but I think in default it is correct at 25. Please find following code.
Yeah, already tried that using the following.
I am sure the problem is with th php server itself. Might consider going to 4.3.1, but dont know how to upgrade. I am currently running 4.2.3 which was installed using e-PHP installer.
Sorry at the time I was desperate, so as well as trying with quotes I tried without. Silly really. Anyway both had the same effect, the PHP session hangs.