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

mail spooler retries emails with missing from address

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2.6.26
    • Labels:

      Description

      if an email ends up in the mail spool with a missing from address, lucee tries 5 times to send the email
      despite the fact that it's never going to be sent, which apart from being pointless, it generates log spam

      also acf throws an error when from is empty from the cfmail tag

      the error message could be improved too

      you have do define the from for the mail
      lucee.runtime.exp.NativeException: you have do define the from for the mail
      at lucee.runtime.net.smtp.SMTPClient.createMimeMessage(SMTPClient.java:445)
      at lucee.runtime.net.smtp.SMTPClient._send(SMTPClient.java:808)
      at lucee.runtime.spooler.mail.MailSpoolerTask.execute(MailSpoolerTask.java:120)
      at lucee.runtime.spooler.SpoolerTaskSupport._execute(SpoolerTaskSupport.java:103)
      at lucee.runtime.spooler.SpoolerEngineImpl.execute(SpoolerEngineImpl.java:601)

      Lucee does throw an error if to is omitted, but there's a typo too
      One of the following attribtues must be defined [to, cc, bcc]

      acf also includes CFMAIL in the error message which helps debugging

      https://trycf.com/gist/7c555f05571e21cc76bc88ca37b7f51c/lucee5?theme=monokai

        Attachments

          Activity

            People

            • Assignee:
              michaeloffner Michael Offner
              Reporter:
              zac.spitzer Zac Spitzer
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: