em, yep.
first to the formmail.php file:
this line isn't recommended to be modified, set it back to original condition as below:
Code:
define("EMAIL_NAME","^[-a-z0-9.]+"); // the '^' is an important security feature!
furthermore the TARGET_EMAIL has to look like this in your case:
Code:
$TARGET_EMAIL = array("^abs@absabs\.us$");
and it's recommended to set the DEF_ALERT, in your case i suggest:
Code:
define("DEF_ALERT","abs@absabs.us");
(set it to the email address that will be sent any alert messages - such as errors - from the script)
second to the sampleform.html file:
it looks quite good, except that you haven't to change realname and email to required in your input fields for name and email address. to get it working adjust it this way:
Code:
<table border="1" cellspacing="5%">
<tr>
<td>
<p>Please enter your name:</p>
</td>
<td><input type="text" name="realname" />
</td>
</tr>
<tr>
<td>
<p>Please enter your email address:</p>
</td>
<td><input type="text" name="email" />
</td>
</tr>
that it should be.
best, erik
Bookmarks