Browse Source

add error message to phpmailer test button

CauseFX 5 years ago
parent
commit
7b9c62b5ec
1 changed files with 1 additions and 2 deletions
  1. 1 2
      api/plugins/js/php-mailer.js

+ 1 - 2
api/plugins/js/php-mailer.js

@@ -256,8 +256,7 @@ $(document).on('click', '.phpmSendTestEmail', function() {
             messageSingle('',response.message,activeInfo.settings.notifications.position,'#FFF','error','5000');
         }
     }).fail(function(xhr, data) {
-    	console.log(data)
-        console.error("Organizr Function: API Connection Failed");
+	    OrganizrApiError(xhr, 'Mailer Error');
     });
     ajaxloader();
 });