@@ -178,7 +178,7 @@ component {
178178 public void function loadServiceConfig () localmode = true {
179179 systemOutput ( " " , true ) ;
180180 systemOutput (" -------------- Test Services ------------" , true );
181- services = ListToArray (" oracle,MySQL,MSsql,postgres,h2,mongoDb,s3,s3_custom,s3_google,s3_backblaze,ftp,sftp,memcached,redis,ldap,httpbin" ); // smtp,pop,imap,
181+ services = ListToArray (" oracle,MySQL,MSsql,postgres,h2,mongoDb,s3,s3_custom,s3_google,s3_backblaze,ftp,sftp,memcached,redis,ldap,httpbin, smtp,pop,imap" );
182182 // can take a while, so we check them them in parallel
183183
184184 services .each ( function ( service ) localmode=true {
@@ -341,22 +341,13 @@ component {
341341 }
342342
343343 public function verifySMTP ( smtp , service ) localmode = true {
344- /*
345344 try {
346- 347- 348- subject="service test"
349- async=false
350- server=smtp.SERVER
351- port=smtp.PORT_INSECURE
352- username=smtp.USERNAME
353- password=smtp.PASSWORD {
354- echo("test suite service test email");
355- }
345+ getTagData (" cf" , " mail" ); // with throw if mail not installed / available
346+ // call service cfc to test, to avoid compile error, due to tag syntax
347+ services .cfmail :: testMail ( smtp );
356348 } catch (e ) {
357- throw e.message;
349+ throw ( message = e .message , cause = e ) ;
358350 }
359- */
360351 return " SMTP Connection Verified" ;
361352 }
362353
0 commit comments