MSMQSendMessage

MSMQSendMessage publishes a message to the specified MSMQ queue or distribution list.

Properties

Destination queue

The destination queue to send this message to.
See Destination queue format.

Message format

Options: XML or Binary

The selected format will be used to serialize the message body.

For more details see the Microsoft documentation.

Message body

The contents of the message.

Label

The application-specific label of the message.

Reply-to queue

The queue to which replies should be sent.

Correlation ID

ID used to identify replies.
See Correlation ID format.

Destination queue format

The format of the destination queue field depends on the type of queue you are sending to:

Public queue
<Computer name>\
or
FormatName:Public=<queue GUID>

Private queue
<Computer name>\Private$\ or
FormatName:DIRECT=OS:<Computer name>\

Private queue (using SPX)
FormatName:DIRECT=SPX:<Network number><Host number>\

Private queue (using TCP)
FormatName:DIRECT=TCP:<IP address>\

Private queue (using http(s))
FormatName:DIRECT=http(s):///msmq/

Journal queue
<Computer name>\\Journal

Computer Journal queue
<Computer name>\Journal$

Computer dead-letter queue
<Computer name>\Deadletter$

Computer transaction dead-letter queue
<Computer name>\XactDeadletter$

Distribution list
FormatName:DL=<Distribution list GUID> /

Multicast addresss
FormatName:DL=MULTICAST=<Multicast IP Adress>:<Port>
Multicast IP addresses are in the range 224.0.0.0 to 239.255.255.255

Multiple destinations
Multiple destinations can be specified by seperating them with a comma.
For example: ComputerA\Private$\queue, ComputerB\Private$\queue

Sending to a local computer
If you want to send to a queue on your local computer, use a "." in the "<Computer name>" field.

Correlation ID format

Correlation ID must be in the format \
For example, 21ec2020-3aea-4069-a2dd-08002b30309d\3
Uppercase characters are allowed as part of the "guid" function, however these will be converted to lowercase when the message is sent.

Microsoft's MSMQ overview