sb.append(exception.getMessage().replaceAll("\\n", "")); sb.append("] )");
private void logSendFailedException(SendFailedException sfe) { if (configuration.isDebug()) { EnhancedMessagingException enhancedMessagingException = new EnhancedMessagingException(sfe); if (enhancedMessagingException.hasReturnCode()) { LOGGER.info("SMTP SEND FAILED: Command [{}] RetCode: [{}] Response[{}]", enhancedMessagingException.computeCommand(), enhancedMessagingException.getReturnCode(), sfe.getMessage()); } else { LOGGER.info("Send failed", sfe); } logLevels(sfe); } }
statusMsg = "The system was unable to deliver your mail. Please try again later. [SEND FAILED]"; outFile.println( statusMsg ); outFile.println( e.getMessage() ); } catch (MessagingException e) { statusMsg = "The system was unable to deliver your mail. Please try again later. [MESSAGING]";
if (messageException instanceof SendFailedException) { SendFailedException sendFailedException = (SendFailedException) messageException; if (sendFailedException.getMessage().equals( INVALID_ADDRESSES)) { Address[] invalidAddresses = sendFailedException
debug(listener.getLogger(), "SendFailedException message: " + e.getMessage()); break;
if (messageException instanceof SendFailedException) { SendFailedException sendFailedException = (SendFailedException) messageException; if (sendFailedException.getMessage().equals( INVALID_ADDRESSES)) { Address[] invalidAddresses = sendFailedException
debug(context.getListener().getLogger(), "SendFailedException message: " + e.getMessage()); break;
sbLogsLine.append( e.getMessage( ) ); AppLogService.error( "MailService - Error sending mail : " + e.getMessage( ), e );