Test your server setup by creating this file and pointing your browser to it. Be sure to delete it when you are done. Assume the file name is emailtest.php
<?php
mail("peter.kirkwood@btinternet.com","phpMail Function Test","Testing Email");
?>
If this works then your server is setup to send mail as you would do with your form.
If this works and your form does not then try removing the line
$where_form_is="http://".$_SERVER.strrev(strstr(strrev($_SERVER),"/"));
Let me know if you still can not get it to work.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2010-06-02
I've done that and waited about 5 mins… no email. I guess that means that my server is not setup to send it that way.
I'll look at the server support pages more, but any other ideas?
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi there,
I'm not receiving an email from my form… any ideas?
http://www.pfm-ltd.com/form.html
The file is processor.php
<?php
$where_form_is="http://".$_SERVER.strrev(strstr(strrev($_SERVER),"/"));
session_start();
if( ($_SESSION==$_POST) && (!empty($_POST)) ) {
mail("peter.kirkwood@btinternet.com","phpFormGenerator - Form submission","Form data:
Name: " . $_POST . "
Email: " . $_POST . "
Tel: " . $_POST . "
Message: " . $_POST . "
powered by phpFormGenerator.
");
include("confirm.html");
}
else {
echo "Invalid Captcha String.";
}
?>
Test your server setup by creating this file and pointing your browser to it. Be sure to delete it when you are done. Assume the file name is emailtest.php
<?php
mail("peter.kirkwood@btinternet.com","phpMail Function Test","Testing Email");
?>
If this works then your server is setup to send mail as you would do with your form.
If this works and your form does not then try removing the line
$where_form_is="http://".$_SERVER.strrev(strstr(strrev($_SERVER),"/"));
Let me know if you still can not get it to work.
I've done that and waited about 5 mins… no email. I guess that means that my server is not setup to send it that way.
I'll look at the server support pages more, but any other ideas?
Thanks
If the simple case does not work you need to trace the sendmail through the server log files. No other ideas.