My 3 month issues is that so far I have not gotten any php mail forms to work on our server. We think we have tried everything, but we must be wrong. Are there any scripts around that I can run on the server that will just simply test if our mail works ? A script that doesn't need to be linked to external or local files ? If anyone knows of any, that would be GREAT!
I just can't figure out where the break is. When the form is filled in and completed, it never stops saying "waiting for www.mywebsite.com..." and I have never seen any error messages. Is that a clue? I am using $_POST and not $HTTP_POST_VARS, and we think we have set up the server SMPT settings correctly. The vars are coming from flash which has worked on other servers with the same php script!
I am totally confused, and frightened. I am pretty sure the problem must be to do with the server and not the script.
If anyone knows about any scripts that can test if our server is configured correctly, please show some love this way.
When the form is filled in and completed, it never stops saying "waiting for www.mywebsite.com..."
You would need to post your code to get any help with the condition that is causing this.
Quote:
and I have never seen any error messages.
Have you checked your web server log for errors and/or is full PHP error reporting turned on?
Quote:
we think we have set up the server SMTP settings correctly.
You would need to show us what the settings are and also tell us what your SMTP setup is.
__________________
Error checking, error reporting, and error recovery. If your code does not have these to get it to tell you why it is not working, what makes you think someone in a programming forum will be able to tell you why it is not working???
//Process the form data!
// and send the information collected in the Flash form to Your nominated email address
if ($action == "send") {
//
mail ("$adminaddress","Website Contact",
"A visitor at $sitename has left the following information\n
------------------------------
First Name: $firstname Last Name: $lastname
//Confirmation is sent back to the Flash form that the process is complete
$sendresult = "Thank you.";
$send_answer = "answer=";
$send_answer .= rawurlencode($sendresult);
echo $send_answer;
} //
?>
<?php
if (@mail($to, $subject, $message)) {
echo('<p>Mail sent successfully.</p>');
} else {
echo('<p>Mail could not be sent.</p>');
}
?>