Fixed compile error
This commit is contained in:
parent
a005d26f1c
commit
dbafad9e9e
1 changed files with 32 additions and 32 deletions
|
@ -174,10 +174,6 @@ public class ContactMailController extends FreeMarkerHttpServlet {
|
|||
FileWriter fw = new FileWriter(context.getRealPath(EMAIL_BACKUP_FILE_PATH),true);
|
||||
PrintWriter outFile = new PrintWriter(fw);
|
||||
writeBackupCopy(outFile, msgText, spamReason);
|
||||
}
|
||||
catch (IOException e){
|
||||
LOG.error("Can't open file to write email backup");
|
||||
}
|
||||
|
||||
// Set the smtp host
|
||||
Properties props = System.getProperties();
|
||||
|
@ -208,6 +204,10 @@ public class ContactMailController extends FreeMarkerHttpServlet {
|
|||
|
||||
outFile.flush();
|
||||
outFile.close();
|
||||
}
|
||||
catch (IOException e){
|
||||
LOG.error("Can't open file to write email backup");
|
||||
}
|
||||
|
||||
// Message was sent successfully
|
||||
if (statusMsg == null && spamReason == null) {
|
||||
|
|
Loading…
Add table
Reference in a new issue