email.setHostName(strTestMailServer);
email.setSmtpPort(getMailServerPort());
email.setFrom(strTestMailFrom);
email.addTo(strTestMailTo);
email.setSubject(strSubject);
email.setDataSourceResolver(new DataSourceUrlResolver(TEST_IMAGE_DIR.toURI().toURL(), TEST_IS_LENIENT));
final File file = File.createTempFile("emailtest", ".tst");
FileUtils.writeStringToFile(file,
"just some silly data that we won't be able to display anyway");