Why doesn't this work?

<?php
$bodyString = “hello can you read this”
mail("myEmail@whereIam.com", “testSubject”, $bodyString);
?>

why doesn’t this work? the server has php.
I’ve been using php / flash / xml for some time, but usually used CFM to write emails.

On a server that has php version 4.0x, nothing php worked, including this simplest of scripts.

What would cause this not to work?

-mike


<?php
$bodyString = "hello can you read this";
?>

well that’s not really an answer, but I’m asking why the mail isn’t sent at all
(with or without the ’ ; ’

are you sure your server php ini has smtp? what’s the error?

I don’t even know how they had it set up, but in theory that SHOULD work right?

I’ve since left their project wince they refused to pay me

normally mail(); uses sendmail, which majority of the Linux/Unix hosts have it installed and running. It’s different for windows hosts. You can read about it on php.net: http://www.php.net/manual/en/ref.mail.php

The ‘;’ is very important. Your script won’t work without it. It tells the php engine to end that variable string and then begin the next bit.

:to:

there is no belief I hold more strongly, in all of my experience as a human being, than the one which states that every single physical or virtual entity which bears the name ‘microsoft’ should be doused in petroleum, set ablaze and launched into outer space by means of being towed behind the next space shuttle launch.

There’s no reason at all for any of those machines to exist whatsoever.

If you look at every single problem and ‘special case’ listed at the php site, every one of them begins with the words ““but on SOME windows systems you must configure this or you’ll recieve an error, on some others this, on some others this…””

please kill ALL windows computers. this isn’t to start a flame war at all. I used windows for years. It’s difficult to believe that they could ever have become popular at all. They cause so much MESS and CLUTTER even within themselves.

Amen to that!

But you gotta give them credit for their interfaces.

Nah, I give credit to Apple/Quartz/Xerox, who invented the GUI first :wink:

And even now, I find GNOME perfectly usable, and I’m sure OSX would be equally/more so.

I have tried Apple Macitosh, Win 2000, Win 2003/xp, Linux (red hat) and in my own, limited, personal view, interface of Win 2003/xp scores over others.

i always find other softwares trying to catchup with microsoft. if you go into browser space, database, backoffice etc products here also the interface is much better than others.

only macromedia products i find are slightly better in the looks department but they are very poor in terms of speed, performance and rescource usage.

riiggghhtttt…

Good ol’ MS Bashing? I’m sure I can argue for DAYS about this. There is no legitimate way NOT to start a flame war, specially involving MS and anyone. But for now, …clutter.