$MessageID field in mail documents

I need to know when does this field $MessgeID get generated? Can I get the value of the $MesageID field after I mail the document using the send method? Its urgent !!