Changed signature of method  send(final Mail composedMessage, final File[] attachmentfiles).
Use createTempFile for attachmentfiles.