Uploaded image for project: 'Lucee Development'
  1. LDEV-1184

Improve how Lucee sends mail when one or more addresses are invalid

    Details

    • Type: Incompatibility
    • Status: Deployed
    • Priority: New
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.5.5.010, 5.1.3.3
    • Labels:
      None
    • Sprint:
      March 2017 Sprint

      Description

      If mail is sent to a server (tested with Exchange server) with multiple "to" addresses that are all syntactically valid, but the mail server rejects one or more of the addresses as not being real accounts, no one on the "to" list receives the message.

      This is documented here:
      http://docs.oracle.com/javaee/6/api/javax/mail/SendFailedException.html#getValidUnsentAddresses%28%29

      And an example of the exception from the mail logs is:

      "ERROR","Thread-1413","02/02/2017","19:03:03","","mail;Invalid Addresses;
      nested exception is:
      class com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <bademail@company.com>... User unknown
      ;Invalid Addresses;
      nested exception is:
      class com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <bademail@company.com>... User unknown
      at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1141):1141
      at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:536):536
      at lucee.runtime.net.smtp.SMTPSender.run(SMTPSender.java:61):61
      "

      According to the doc link above though, there is a method to retrieve the addresses in the message that WERE valid. Improve Lucee to retry sending the message to only the good addresses in the list. The original failure should still be logged.

        Attachments

          Activity

            People

            • Assignee:
              michaeloffner Michael Offner
              Reporter:
              bdw429s Brad Wood
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: