title: How to create a new MSMQ message in IronPython with label, reply queue and other properties
body: <p>I'm following this example <a href="http://www.ironpython.info/index.php?title=Message_Queuing" rel="nofollow noreferrer">here</a> to use MS Message Queues with IronPython.
  The example works to create a message text string without any properties.</p>
  <pre><code>import clr
  clr.AddReference('System.Messaging')
  from System.Messaging import MessageQueue
  
  ourQueue = '.\\private$\\myqueue'
  queue = MessageQueue(ourQueue)
  queue.Send('Hello from IronPython')
  </code></pre>
  <p>I am trying to create an empty message and then add properties (like label, a reply queue and a binary message body) and then send that complete message.</p>
  <p>How can I do this in IronPython?</p>
  <p>The documentation of the message class is <a href="https://msdn.microsoft.com/en-US/library/system.messaging.message.message%28v=vs.80%29.aspx" rel="nofollow noreferrer">here</a>, but obviously has no python sample code. I have never used .net code with python and just installed IronPython to connect to an existing MSMQ environment, so I'm a bit stuck in how to proceed.</p>
  <p>Any help?</p>
  <h1>update</h1>
  <p>See answer below, I managed to guess the systax to create a message.
  The solution seems a bit hacky so I'll leave this open for a few days</p>