You can use the following stored procedures to get and set message content.
ml_qa_getbinarycontentml_qa_getcontentclassml_qa_gettextcontentml_qa_setbinarycontentml_qa_settextcontent