Skip to content

Commit 2e80a33

Browse files
committed
Merge branch 'development'
2 parents 7c15f74 + 489a42a commit 2e80a33

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

box.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name":"ColdBox Mail Services",
3-
"version":"2.7.0",
3+
"version":"2.7.1",
44
"location":"https://downloads.ortussolutions.com/ortussolutions/coldbox-modules/cbmailservices/@build.version@/[email protected]@.zip",
55
"author":"Ortus Solutions.com <[email protected]",
66
"slug":"cbmailservices",

changelog.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
----
99

1010

11+
## [v2.7.1] => 2023-FEB-14
12+
13+
### Fixed
14+
15+
* Fix usage of invalid named member function #33 (https://github.com/coldbox-modules/cbmailservices/pull/33)
16+
17+
----
18+
19+
1120
## [v2.7.0] => 2023-JAN-16
1221

1322
A big thanks to @richardherbert for all the updates in this release.

models/Mail.cfc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ component accessors="true" {
203203
throw(
204204
type : "InvalidMailException",
205205
message: "One or more required fields are missing.",
206-
detail : "Please check the basic mail fields of To, From, Subject and Body as they are empty. To: #variables.config.to#, From: #variables.config.from#, Subject Len = #variables.config.subject.length()#, Body Len = #variables.config.body.length()#."
206+
detail : "Please check the basic mail fields of To, From, Subject and Body as they are empty. To: #variables.config.to#, From: #variables.config.from#, Subject Len = #variables.config.subject.len()#, Body Len = #variables.config.body.len()#."
207207
);
208208
}
209209
return this;
@@ -214,10 +214,10 @@ component accessors="true" {
214214
*/
215215
boolean function validate(){
216216
if (
217-
variables.config.from.length() eq 0 OR
218-
variables.config.to.length() eq 0 OR
219-
variables.config.subject.length() eq 0 OR
220-
( variables.config.body.length() eq 0 AND arrayLen( variables.config.mailParts ) EQ 0 )
217+
variables.config.from.len() eq 0 OR
218+
variables.config.to.len() eq 0 OR
219+
variables.config.subject.len() eq 0 OR
220+
( variables.config.body.len() eq 0 AND arrayLen( variables.config.mailParts ) EQ 0 )
221221
) {
222222
return false;
223223
} else {

0 commit comments

Comments
 (0)