Skip to main content

SendAMQPMessage

Structure

SendAMQPMessage(sHost, sPort, sUser, sPassword, sContainer, sSession, sSender, sTarget, bSSL, sMessage)

Parameters

ParameterTypeDescription
sHostStringHost of the server to connect to.
sPortStringPort to send the message to.
sUserStringUser to connect as
sPasswordStringPassword to connect as
sContainerStringAMQP container to use
sSessionStringAMQP session to use
sSenderStringAMQP sender to use
sTargetStringTarget Queue to send message to
bSSLBooleanWhether to use SSL when connecting
sMessageStringThe message to send.

Return value

"Message Sent." or error message describing the problem sending.

Description

This function connects to a server using the AMQP protocol and attempts to send a message to it.

Example

SendAMQPMessage("localhost", "5672", "", "", "IndyContainer", "IndySession", "IndySender", "DemoTarget", false, "Test message from IndySoft")