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


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.


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>\
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))

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 to

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