CFMAIL doesn't default type to plain text when empty

Description

this works on ACF, it defaults back to to text/plain
https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-tags/tags-m-o/cfmail.html

Lucee doesn't https://docs.lucee.org/reference/tags/mail.html#attribute-type

Lucee throws the following exception

https://github.com/lucee/Lucee/blob/5.3/core/src/main/java/lucee/runtime/tag/Mail.java#L279

The exception message should include the invalid value, the exception detail doesn't need the value(s)

Environment

None

Activity

Show:
Pothys - MitrahSoft
June 24, 2020, 7:59 PM

, I've changed that too.

Michael Offner
August 31, 2020, 11:27 PM

Michael Offner
August 31, 2020, 11:28 PM

Michael Offner
August 31, 2020, 11:49 PM

adapted improved exception message from manually

Pothys - MitrahSoft
September 29, 2020, 8:27 PM

I've checked this with a fixed version of 5.3.8.53-SNAPSHOT. It works fine.

Fixed

Assignee

Michael Offner

Reporter

Zac Spitzer

Priority

Minor

Labels

Fix versions

Affects versions