Mail processing script for non-developers
If you are familiar with ASP or ColdFusion, you're probably in the wrong place. See this...
If you are not familiar with ASP or ColdFusion, you can use the following ASP file to use with a form when you want the contents of the form to be emailed to you.
Instructions on how to use it:
- Download the file. You can right-click on the link and choose "Save Target As..." OR you can click on the link to view the contents of the file then save it by clicking on File then Save.
- After the file has been downloaded, open the file in a plain text editor such as Notepad (double-clicking on the file should do this automatically).
- Read the various remarks/comments (all are preceded by single quotes); they describe the different settings that need to be configured. Make the necessary changes to suit your needs.
- Save the file when you're finished.
- Rename the file to whatever you want (must end with ".asp", such as "formprocess.asp").
- Upload the file to your website. Where you put it in your site doesn't matter, so long as it makes sense to you.
- Edit your form (e.g. contactus.htm). Make sure that the action attribute of the form element references the ASP file you just uploaded.
Here's example HTML code for a very basic sample form that would call the ASP mail processing file:
<form method="post" action="formprocess.asp">
<input type="hidden" name="Subject" value="This is the email subject">
Name: <input type="text" name="Name" size="35" maxlength="50"><br>
Email: <input type="text" name="Email" size="35" maxlength="75"><br>
Phone: <input type="text" name="Phone" size="14" maxlength="14"><br>
Another field: <input type="text" name="SomethingElse" size="35" maxlength="100"><br>
<button type="submit" value="Submit Form">Submit Form<button> <button type="reset" value="Reset">Reset<button>
</form>