mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-20 19:08:21 +00:00
repair email send error msg (#4705)
This commit is contained in:
@@ -140,7 +140,6 @@ class InvitationsBatchView(APIView):
|
|||||||
|
|
||||||
i = Invitation.objects.add(inviter=request.user.username,
|
i = Invitation.objects.add(inviter=request.user.username,
|
||||||
accepter=accepter)
|
accepter=accepter)
|
||||||
result['success'].append(i.to_dict())
|
|
||||||
|
|
||||||
m = i.send_to(email=accepter)
|
m = i.send_to(email=accepter)
|
||||||
if m.status != STATUS.sent:
|
if m.status != STATUS.sent:
|
||||||
@@ -148,5 +147,7 @@ class InvitationsBatchView(APIView):
|
|||||||
'email': accepter,
|
'email': accepter,
|
||||||
'error_msg': _('Failed to send email, email service is not properly configured, please contact administrator.'),
|
'error_msg': _('Failed to send email, email service is not properly configured, please contact administrator.'),
|
||||||
})
|
})
|
||||||
|
else:
|
||||||
|
result['success'].append(i.to_dict())
|
||||||
|
|
||||||
return Response(result)
|
return Response(result)
|
||||||
|
Reference in New Issue
Block a user