Skip to content

Commit 1bb9d4f

Browse files
committed
updated to use latest coldbox announce()
1 parent 829960e commit 1bb9d4f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

models/MailService.cfc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -279,17 +279,17 @@ component accessors="true" singleton threadsafe {
279279
// Just mail the darned thing!!
280280
try {
281281
// announce interception point before mail send
282-
variables.inteceptorService.processState( "preMailSend", { mail : arguments.mail } );
283-
282+
variables.inteceptorService.announce( "preMailSend", { mail : arguments.mail } );
283+
284284
// Get mailer
285285
var mailerRecord = getMailer( arguments.mail.getMailer() );
286-
286+
287287
// We mail it with the mailer of choice
288288
var results = mailerRecord.transit.send( arguments.mail );
289289
// Store results
290290
arguments.mail.setResults( results );
291291
// announce interception point after mail send
292-
variables.inteceptorService.processState( "postMailSend", { mail : arguments.mail, result : results } );
292+
variables.inteceptorService.announce( "postMailSend", { mail : arguments.mail, result : results } );
293293
} catch ( Any e ) {
294294
arguments.mail.setResults( {
295295
"error" : true,

0 commit comments

Comments
 (0)