refactored Debug Mail panel to work with different vendors

implementation checks for instanceof for additional swiftmailer
capabilities.

issue #2870