ASPMailUsing the ASPMail script is a very straightforward process. All you need do is specify a page on your web site as the "action" page for your form, and then include the ASPMail script on that page. Each form on your website will consist of 2 pages: A "form" page which actually holds your form, and an "action" page which processes your form when someone clicks on the "submit" button. For purposes of this discussion, we will refer to these pages as "form.html" and "aspmailform.asp". * *Note: Your action page must have a .asp extension, even though it is an ordinary HTML file. Once you have constructed your form using regular HTML make sure that your <form> tag specifies the "post" method, and that the action statement points to your "action" page. Example: <form action="aspmailform.asp" method="post"> Then, on your action page (aspmailform.asp) you will need to add a block of code similar to the one below. The Mailer.RemoteHost line will be "mail.yourdomain.xyz" (where .xyz is your domain extension such as .com). Please note that your domain must be pointing to our service and you must be using our DNS servers for this to work properly. <% Order your ASPMail FieldsTo return form contents in the original form order your code might be... strMsgHeader = "Form Information Follows: " & vbCrLf Note this code only works for forms containing 128 or fewer field items Sending HTML EmailsTo send the body of the email as HTML include this line: ASPQMailAspQMail uses the AspMail component to send messages to the queue. To use the component you use it the same way you normally would except that you set one additional property. Mailer.QMessage = true If QMessage is true then the message will be sent to the \Que directory and queued for delivery. If it is false (the default) it will be sent normally via SMTP. Queuing can greatly increase the response time of your application if you are delivering to several recipients at once. The pertinent lines of this code are explained below:
|
Flash Games
|
||||||||||||||||||||||
ImageAid recently completed and launched the innnagural Web site for OurayVacations.com. The site promotes vacation opportunities and activities in Ouray, Colorado, 'The Switzerland of America.' The site integrates HTML with XML and Flash, creating a usable, dynamically driven site.