I have an application that sends a message (using the ItemSend token),
then gets a reference to the sent message to further process it.

To get the reference to the sent, ItemSend returns a DWORD value which can
be input to the EnvSentMessageID to return the message ID of the sent

Problem is: it looks like when the spell checker is on, the ItemSend token
returns an empty value (not the aforementioned DWORD value). My attempt to
get the sent message ID subsequently fails.

Is there a workaround to this problem?