+ } catch (SMTPException e) {
+ if (accepted) return true;
+ Log.warn(SMTP.Outgoing.class, " unable to send; error=" + e);
+ Log.warn(SMTP.Outgoing.class, " message: " + m.summary());
+ Log.warn(SMTP.Outgoing.class, e);
+ if (e.code >= 500 && e.code <= 599) {
+ try {
+ attempt(m.bounce("unable to deliver: " + e), true);
+ } catch (Exception ex) {
+ Log.error(SMTP.Outgoing.class, "exception while trying to deliver bounce; giving up completely");
+ Log.error(SMTP.Outgoing.class, ex);
+ }
+ return true;
+ }
+ return false;