Managing Mail Attachments

Here’s the scenario. The user is presented with a file selection dialogue for initiating an eMail attachment. Could be anything – a gif, a Word document, an rtf, html, Excel document, PDF, etc.

The attachment now needs to be prepped with either plugin.mail.createBinaryAttachment or plugin.mail.createTextAttachment.

Is there an easy way to test which prep tool to use?