CFmail with Attachment

When I try a cfmail with any attachment I get this.
timeout occurred after 30 seconds while sending mail message:0 at at at lucee.runtime.tag.Mail.doEndTag(

I have tried upgrading and downgrading. When I use async=true. I don’t get the error. But the mail doesn’t get delivered. The mail works perfectly fine with no attachments.
Any help will be greatly appreciated.

OS: Windows 2012 R2
Java Version: 15.0.1
Tomcat Version: 9.0.14
Lucee Version:

Looks like a bad installation or something like that.
I fully uninstalled Lucee.
and installed it again and it worked!

1 Like

After reinstalled, did the Java version change?

No. It was still the same version of Java that came bundled with Lucee

Then it’s unexpected how Lucee is reporting Java 15, or perhaps my understanding is incorrect that Lucee 5.3 is bundled with Java 11.