| w3JMail Examples |
Examples 4.5
|
One of the most common uses for Dimac w3 JMail is when a form is filled out by the user and then emailed by ASP. This example shows you just how easy it is. |
First of all we need a form which posts to our JMail page. |
JmailForm.asp
<html>
<head> <title>emailform</title> </head> <body> <form method="post" action="SendMail.asp"> Complete this form and click the submit-button. We will answer your questions as soon as possible. <br><br> Your name<br> <input type="text" size="25" name="name"><br> Your email<br> <input type="text" size="25" name="email"><br> Recipient email<br> <input type="text" size="25" name="recipient"><br> State your business<br> <select name="subject" size="1"> <option value="help">help <option value="tips">tips <option value="other">other </select> <br> Enter your question<br> <textarea name="body" cols="40" rows="15" wrap="PHYSICAL"></textarea> <br> <input type="submit" value=" Submit "> </form> </body> </html> |
Then we need to catch the post and read the form. Pick up all information and create the e-mail. |
SendMail.asp<%@LANGUAGE = VBSCRIPT%> <html> <body> <%%> </body> </html> |
|
|