mail spooler retries emails with missing from address

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

Environment

None

Assignee

Michael Offner

Reporter

Zac Spitzer

Priority

Critical

Labels

Fix versions

Configure