correcting imports and adding documentation
added support for testing mode to sendMailWithAttachments: #MSG-141 fixed