After you paste in the code try closing outlook and then reopen. The flag should be attached to the item in the sent folder.
Click here for a guide on how to add code tags
Click here for a guide on how to mark a thread as solved
Click herefor a guide on how to upload a file with your post