Fixed
Details
Details
Assignee
Zac Spitzer
Zac SpitzerReporter
Zac Spitzer
Zac SpitzerPriority
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Sprint
None
Affects versions
Created 23 August 2021 at 16:13
Updated 4 February 2025 at 11:31
Resolved 30 August 2021 at 09:08
https://dev.lucee.org/t/attribute-cc-of-the-tag-mail-is-invalid/8769/5
Attribute [to] of the tag [mail] is invalidDetail[] cannot be converted to an email addressStacktraceThe Error Occurred in
C:\lucee\tomcat\webapps\ROOT\cfmail.cfm: line 1
1: <Cfmail from="zak.spitza@gmail.com" to="zak.spitza@gmail.com," subject="test">
2: boom
3: </Cfmail>
Caused by: lucee.runtime.net.mail.MailException: [] cannot be converted to an email address
at lucee.runtime.net.mail.MailUtil.parseEmail(MailUtil.java:185)
at lucee.runtime.net.mail.MailUtil.fromList(MailUtil.java:128)
at lucee.runtime.net.mail.MailUtil.toInternetAddresses(MailUtil.java:70)
at lucee.runtime.net.smtp.SMTPClient.addTo(SMTPClient.java:270)
at lucee.runtime.tag.Mail.setTo(Mail.java:209)
... 40 more
just needs a length check here?
https://github.com/lucee/Lucee/blob/5.3/core/src/main/java/lucee/runtime/net/mail/MailUtil.java#L128