Use text/plain part of multipart message for text body and charset in debug mail panel.

Fixes #5126
Fixes #5126: Fixed text body and charset not being set for multipart mail