This commit is contained in:
2020-07-23 23:56:36 +00:00
parent ba2576a533
commit 0141e80824

View File

@@ -100,6 +100,9 @@ namespace AyaNova.Api.Controllers
if (!Authorized.HasModifyRole(HttpContext.Items, AyaType.OpsNotificationSettings))//technically maybe this could be wider open, but for now keeping as locked down
return StatusCode(403, new ApiNotAuthorizedResponse());
var res = await CoreJobNotify.TestSMTPDelivery(toAddress);
if(res!="ok"){
return StatusCode(500, new ApiErrorResponse(ApiErrorCode.API_SERVER_ERROR, null, res));
}
return Ok(ApiOkResponse.Response(res));
}