I totally stumped. . . I've checked my folder permission and I've checked the process.php file. . . and still no email notification when user submits form. I'm having submitted forms go to my hotmail account. . . . nothing ever arrives. Yes, I've checked my junk mail. . . . Help
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
First, your host must support the mail function from your php files.
Second, your process.php file should include the code necessary to create the email ($message).
Third, the process.php file must include the correct mail function syntax.
mail("youremailaddress","Form Submitted at your website",$message,"From: phpFormGenerator");
Check to see if your host account has a web mail application for your email accounts. Check the outgoing mail folder to see if there is any evidence of outgoing mail.
Check with your host, ask if they can provide an error log from your account to see if there is any evidence of the email activity and if so what the error might be.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for the quick response and guidance.
I thought I could have the form email the notification directly to my Hotmail account. But when I changed the Process.php mail function syntax to send the notification to my host email account it worked. I just thought I could avoid having to send the notification to my host account, then have the host account forward email to my hotmail account. But I guess not. So. . . it's working now. Thanks !
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
well . . .i checked the typing, but it didn't work still. I did have to change the process.php file in two places. 1 was in the forms folder and the 2nd was in the usersemail folder i created
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I ask because when I enter an email that contains the character "_" in the user form for submission, I get an error saying that the email address is invalid.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you know your "regular expression syntax" this is the check for valid email addresses:
if(!eregi("^[a-z0-9]+([_\\.-][a-z0-9]+)*" ."@"."([a-z0-9]+([\.-][a-z0-9]+)*)+"."\\.[a-z]{2,}"."$",$EmailAddress)){
$error.="<li>Invalid email address entered";
$errors=1;
}
Must begin with any number or letter, can then have _ or . or - followed by any number or letter, then hte @ symbol, then again any number or letter, then _ or . or -, then a ., then any letter.
Spaces are bad, but can be stripped using this line just prior to the check:
$EmailAddress=trim($EmailAddress);
Hope this helps.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can be done but probably not a good idea to have this as a name anyway. The email address syntax checking in process.php is "typical". If you don't want to be excluded by others I suggest you follow the "norm".
In any case:
if(!eregi("^[a-z0-9]+([_\\.-]+)*" ."@"."
Note the change right after the [_\\.-] part. Don't forget the rest of the line of course.
This should satisfy your example email address anyway.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I totally stumped. . . I've checked my folder permission and I've checked the process.php file. . . and still no email notification when user submits form. I'm having submitted forms go to my hotmail account. . . . nothing ever arrives. Yes, I've checked my junk mail. . . . Help
First, your host must support the mail function from your php files.
Second, your process.php file should include the code necessary to create the email ($message).
Third, the process.php file must include the correct mail function syntax.
mail("youremailaddress","Form Submitted at your website",$message,"From: phpFormGenerator");
Check to see if your host account has a web mail application for your email accounts. Check the outgoing mail folder to see if there is any evidence of outgoing mail.
Check with your host, ask if they can provide an error log from your account to see if there is any evidence of the email activity and if so what the error might be.
Thanks for the quick response and guidance.
I thought I could have the form email the notification directly to my Hotmail account. But when I changed the Process.php mail function syntax to send the notification to my host email account it worked. I just thought I could avoid having to send the notification to my host account, then have the host account forward email to my hotmail account. But I guess not. So. . . it's working now. Thanks !
Must have been a typo because it's possible to use any valid email address.
well . . .i checked the typing, but it didn't work still. I did have to change the process.php file in two places. 1 was in the forms folder and the 2nd was in the usersemail folder i created
Can the email contain special characters such as "_" ? Maybe that was the issue?
I ask because when I enter an email that contains the character "_" in the user form for submission, I get an error saying that the email address is invalid.
If you know your "regular expression syntax" this is the check for valid email addresses:
if(!eregi("^[a-z0-9]+([_\\.-][a-z0-9]+)*" ."@"."([a-z0-9]+([\.-][a-z0-9]+)*)+"."\\.[a-z]{2,}"."$",$EmailAddress)){
$error.="<li>Invalid email address entered";
$errors=1;
}
Must begin with any number or letter, can then have _ or . or - followed by any number or letter, then hte @ symbol, then again any number or letter, then _ or . or -, then a ., then any letter.
Spaces are bad, but can be stripped using this line just prior to the check:
$EmailAddress=trim($EmailAddress);
Hope this helps.
OK. . . how do I modify that code to accept email addresses such as bomani_@hotmail.com ?
Can be done but probably not a good idea to have this as a name anyway. The email address syntax checking in process.php is "typical". If you don't want to be excluded by others I suggest you follow the "norm".
In any case:
if(!eregi("^[a-z0-9]+([_\\.-]+)*" ."@"."
Note the change right after the [_\\.-] part. Don't forget the rest of the line of course.
This should satisfy your example email address anyway.
ok thanks. . .i'll probably leave the code alone. . . especially since it's my email addie. I originally came up with that email to minimize spam.