These samples are your to use and examine, and only demonstrate a small example of what you can do using ASP Scripts. They also will show how a component works on are server and can be used as a reference. For more information on how to properly create ASP Scripts some links are provided in Links section below.
| Database access | |
| Jmail Setup |
Below is an example of the code that
connected to
the database and extracted the information . Also, on the right side of the
table is an explanation of what each line does when the script is ran
As a reminder you must close the connections that you open in your asp
script. If you do not properly close you connection after you open them your
database will be held open by the server and you will not be able to upload a
new one until it is freed. To free a database results in the server being
stopped and you site being down until the database can modified.
| <%
Set conn = Server.CreateObject("ADODB.Connection") conn.Open " dsn=testserver" Set rs=Server.CreateObject("ADODB.Recordset") rs.Open "select test from test", conn, 1 %> <b> <% Response.Write rs("test") %> </b> <br> <!-- Begin Recordset Close --> <% rs.Close Set rs = Nothing %> <!-- End Recordset Close --> <!-- Begin Close Data Connection Tag --> <% conn.Close Set conn = nothing %> <!-- End Close Data Connection Tag --> |
|
<% ' This is my local SMTP server
' This is me.... E-Mail Subject... ' Get the recipients mailbox from a form (note the lack of a equal sign).
' The body property is
both read and write. ' 1 - highest priority (Urgent)
JMail.AddHeader "Originating-IP", Request.ServerVariables("REMOTE_ADDR") ' Must make sure that
IUSR_???? has access to the following files.
|
|
Dimac's Tech Web-
Makers of the Jmail component.