%
' SendMail.inc. VBScript methods to retrieve information from a user and send mail
'
'==============================
'Get message information and send
'
' Finds a server and mailbox name to use to login with. This sample returns
' a form to the user requesting the information. By replacing this subroutine,
' the data could come from anywhere else (a database, hardcoded, etc.)
'==============================
Sub GetMessageInfo(ByRef objAMSession)
Dim objOutbox
Dim objMessage
Dim objRecipients
Dim objRecipient
Dim strLogonID
Dim bstrMailbox
Dim bstrServer
Dim strRecipient
Dim strSubject
Dim strMessage
On Error Resume Next
strRecipient = Request.QueryString( "txtRecipient")
If strRecipient = "" then
Response.Write("You are currently logged into the mailbox for: " & objAMSession.CurrentUser & "
")
Response.Write("Please fill in all fields for your message.
")
Response.Write("