<%@ LANGUAGE="VBSCRIPT" %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual InterDev 1.0">
<META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
<TITLE>MSMQ Asp Sample Send Message Page</TITLE>
</HEAD>
<BODY>
<A HREF="Default.asp">[Back]</A>
<H3>Sending Message ( body ):<HR> <%= Request.QueryString ( "MsgText" )%> <HR>to Queue <%= Session ("mname") & "\" & Session ("qname")%></H1>
<%Set msg=CreateObject ( "MSMQ.MSMQMessage" )
if Not msg Is Nothing Then
msg.Label = "ASP Test Message"
msg.body = CStr ( Request.QueryString ( "MsgText" ))
set q=Session ( "SendQueue" )
msg.Send q, false
else
%>
Error creating Message Object
<% End if %>
</BODY>
</HTML>