home *** CD-ROM | disk | FTP | other *** search
- <%@ LANGUAGE="VBScript" %>
-
- <HTML>
- <BODY>
-
- <pre>
- <b>
- Geocel DevMailer 1.0
- VBScript Usage Example
- (c) 1999, Geocel International, Inc.
- </b>
- </pre>
-
- <%
-
- ' Create DevMailer Object
- Set Mailer = CreateObject("Geocel.Mailer")
-
- ' Add first SMTP server
- Mailer.AddServer "mailhost.geocel.com", 25
-
- ' Set Sender Information
- Mailer.FromAddress = "support@geocel.com"
- Mailer.FromName = "Geocel Support"
-
- ' Add a recipient to the message
- Mailer.AddRecipient "lham@geocel.com", "L. Ham"
-
- ' Set the Subject and Body
- Mailer.Subject = "Welcome to DevMailer VBScript Test"
-
- Mailer.Body = "Test Message Body Line 1" & VbCrLf & _
- "Test Message Body Line 2" & VbCrLf
-
- ' Send Email - Perform Error Checking
- bSuccess = Mailer.Send()
-
- If bSuccess = False Then
- If Mailer.Queued = False Then
- Response.Write "<h3>Could not send message..queueing failed!</h3>"
- Else
- Response.Write "<h3>Could not send message..queued instead!</h3>"
- End If
- Else
- Response.Write "<h3>Message Sent Successfully!</h3>"
- End If
- %>
-
- <BR>
-
- </BODY>
- </HTML>