<form method="POST" action="/cgi-bin/formmail">
<input type="hidden" name="recipient" value="auto_reply@mydomain.com">
<input type="hidden" name="env_report" value="REMOTE_HOST,REMOTE_ADDR,HTTP_USER_AGENT"> [need to get this info from form]
<input TYPE="hidden" NAME="return_link_url" VALUE="http://www.mydomain.com">
<!--- do not change this line --->
<input type="hidden" name="print_config" value="realname,email,subject">
<!--- input all your own fields in sort the order your want them --->
<input type="hidden" name="sort" value="order:lastname">
<input type="hidden" name="required" value="firstname,lastname,email,telephone,subject,message">
<input type="hidden" name="print_blank_fields" value="1">
Your First Name *
<br>
<input type="text" size="35" maxlength="30" name="firstname" value="">
<br>
<br>
Your Last Name *
<br>
<input type="text" size="35" maxlength="30" name="lastname" value="">
<br>
<br>
Your Email *
<br>
<input type="text" size="35" name="email" value="">
<br>
<br>
Your Telephone Number *
<br>
<input type="text" size="35" maxlength="30" name="telephone" value="">
<br>
<br>
Subject *
<br>
<input type="text" size="35" maxlength="30" name="subject" value="Help">
<br>
<br>
Message *
<br>
<textarea name="message" rows="10" cols="35">Dear Fleming Consulting </textarea>
<br>
<br>
<input type="submit" value="Send message">
<input type="reset" value="Clear Form"></form>
<!-- HTML Markup endspan --></div>
Solved! Go to Solution.
See the configuration instructions at http://www.scriptarchive.com/readme/formmail.html#form_config
Both of these features as well as others are explained by the script author in this document.
Try adding a hidden field specifying a value for realname (email display name). Without this, the incoming mail server will likely drop the email as spam.
Thanks Dave,
The form is now showing me the submittal screen (have not received test mails yet but that is something I can cope with). Any ideas how I get the 'env_report' working and also how I put up a 'redirect' to a custom "thank you page'.
Would be extremely grateful for your knowledge in this area.
See the configuration instructions at http://www.scriptarchive.com/readme/formmail.html#form_config
Both of these features as well as others are explained by the script author in this document.