YOU ARE HERE: HOME > WEB DESIGN ARTICLES > EMAIL FROM A WEB PAGE
Last updated : June 2005
NOTE: This is now disabled and should not be used.
You can download the JSP email script here.
I will get a PHP version up as soon as I can.
INSTRUCTIONS:
Please use the form below as the template for your own. The form field NAMES MUST be exactly the same for this to work! You must change the form field values accordingly ...
The user has enter in a proper email address or they will get a warning and a chance to send it again.
As always, try it out and see how it works.
Use this script for practice or non-critcal web sites only!!
Good luck!
Stefan Mischook
<form action="http://www.killersites.com/kscripts/mailer.jsp" method="post" target="_self">
Email: <input name="senderEmail" type="text" value="" size="50">
<p>Message:</p>
<textarea name="messageBody" cols="50"></textarea>
<br>
<br>
<input type="submit" name="Submit" value="Submit">
<br>
<!-- HIDDEN FIELDS THAT YOU FILL IN! -->
<!-- To whom you are sending the email to -->
<input name="recepientEmail" type="hidden" value="enter an email address here">
<!-- The page that the user is automatically sent to once the email is sent -->
<input name="forwardURL" type="hidden" value="enter an absolute URL here">
<!-- What you want to have appear in the 'subject' of the email -->
<input name="subject" type="hidden" value="Enter the text here">
<!-- HIDDEN FIELDS THAT YOU FILL IN! -->
</form>