Hello
I've been trying (desperately now) to send an email from an Apache 2.0, Linux redhat, PHP 4.2 server and it fails, constantly.
The inicial idea was to send a form to an email (and it worked on my server but with this one the same script fails - I don't get any e-mail at all).
Maybe there's something wrong with the code or maybe someone can help me redirecting the script in order to find something or get something, somewhere, somehow.
I've even got phpinfo from the server but I'm new to php and don't understand it quite well.
Here's the code. If someone could help......
<?php
mail("crop@sapo.pt","Testando","teste","From: webmaster@$SERVER_NAME\nReply-To: webmaster@$SERVER_NAME\nX-Mailer: PHP/" . phpversion());
?>
This doesn't give any errors but I don't get anything in my e-mail (but it works on the testing server).
One more thing: The TO email is not on the same server as the script. Does it matter? Can I go around it?
Thanks for any help.
Suffering
Crop:queasy: