ml_qa_putmessage

Sends a message.

Parameters
Item Description Remarks
1 Message ID VARCHAR(128). You can obtain the message ID from ml_qa_createmessage or ml_qa_getmessage.
2 Address VARCHAR(128)
Remarks

The message ID you specify must have been previously created using ml_qa_createmessage. Only content, properties and headers associated with the message ID before the call to ml_qa_putmessage are sent with the message. Any added after the ml_qa_putmessage are ignored.

A commit is required before the message is actually queued for sending.

See also
Example

In the following example, a message is created with the content 'a simple message' and sent to the address clientid\queuename:

begin
    declare @msgid varchar(128);
    set @msgid = ml_qa_createmessage();
    call ml_qa_settextcontent( @msgid, 'a simple message' );
    call ml_qa_putmessage( @msgid, 'clientid\queuename' );
    commit;
end