StringConverter stringConverter = new StringConverter();
ArrayConverter arrayConverter = new ArrayConverter(String[].class, stringConverter);
arrayConverter.setDelimiter(';');
arrayConverter.setAllowedChars(new char[]{ '@','_' });
String[] emailList = (String[]) arrayConverter.convert(String[].class, emailaddresses);
if (emailList.length > 0)
{
String shortFilename = JUtility.getFilenameFromPath(getExportFilename());
mail.postMail(emailList, "Commande4j User Report requested by "+Common.userList.getUser(Common.sessionID).getUserId()+" from [" + Common.hostList.getHost(getHostID()).getSiteDescription() + "] on " + JUtility.getClientName(), "See attached report.\n", shortFilename, getExportFilename());