| w3Upload Examples |
Examples
|
|
First of all we a form where the user can enter his email message and select which file to attach. |
|
JMailUpload.asp
<html>
<head> <title>emailform</title> </head> <body> <font face="verdana, arial" size="2"><b> <form method="post" action="JmailUploadProcess.asp" ENCTYPE="multipart/form-data"> 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>< /FONT> Recipient email <br> <input type= "text" size= "25" name= "recipient"><br>< /FONT> 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> Attachments <br> <input type="file" name="attachment"> <br> <br> <input type="submit" value=" Submit "> </form> </b></font> </body> </html> |
|
Okay, Now lets put all that info into our email. Again, notice how we use the Upload object instead of the Request object. |
|
JMailUploadProcess.asp<%@LANGUAGE="VBSCRIPT" %> <HTML> <BODY> <% ' Create the JMail message Object%> </BODY> </HTML> |
|
|
|