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 lucee.runtime.net.smtp.SMTPClient._send(SMTPClient.java:912) at lucee.runtime.net.smtp.SMTPClient.send(SMTPClient.java:782) at lucee.runtime.tag.Mail.doEndTag(Mail.java:602)

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: 5.3.8.189

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.