瀏覽代碼

add error message to phpmailer test button

CauseFX 5 年之前
父節點
當前提交
7b9c62b5ec
共有 1 個文件被更改,包括 1 次插入2 次删除
  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();
 });