I've tried, and tried and tried and am still not able to get my form to work. I've even tried a simple test form with one field and am still not getting an email sent from the form. Does anyone have any ideas? I'd be happy to supply the code but perhaps I'm missing something easy. Any help would be greatly appreciated! Thanks.
Wayne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Wayne,
First of all, can you send a message to the email account from the command line? If your form is on a linux box try this from the command line.
# date > testfile
# mail -s "test email" email@servername < testfile
If you don't receive the email, it is a server problem, not the form. Make sure to check your spam and trash folders.
Dave
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
My form is now working thanks to the tech support from my hosting provider. I've included their reply below in case someone else out there is experiencing the same thing:
As you are on windows server you should specify envelop mail sender in your script with ini_set() function. I have added the following line to your mail scripts:
ini_set("sendmail_from","webmaster@".$_SERVER["SERVER_NAME"]);
and now your form is working properly.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've tried, and tried and tried and am still not able to get my form to work. I've even tried a simple test form with one field and am still not getting an email sent from the form. Does anyone have any ideas? I'd be happy to supply the code but perhaps I'm missing something easy. Any help would be greatly appreciated! Thanks.
Wayne
Hi Wayne,
First of all, can you send a message to the email account from the command line? If your form is on a linux box try this from the command line.
# date > testfile
# mail -s "test email" email@servername < testfile
If you don't receive the email, it is a server problem, not the form. Make sure to check your spam and trash folders.
Dave
I'm not familiar with linux. My processor file is as follows:
<?php
$where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/"));
mail("wayne@innerspacestorage.com","phpFormGenerator - Form submission","Form data:
Name: " . $_POST['field_1'] . "
powered by phpFormGenerator.
");
include("confirm.html");
?>
My form is now working thanks to the tech support from my hosting provider. I've included their reply below in case someone else out there is experiencing the same thing:
As you are on windows server you should specify envelop mail sender in your script with ini_set() function. I have added the following line to your mail scripts:
ini_set("sendmail_from","webmaster@".$_SERVER["SERVER_NAME"]);
and now your form is working properly.