diff --git a/HISTORY.rst b/HISTORY.rst index 79892dba3a..0423226112 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -1,6 +1,7 @@ 3.2.9 (2019-XX-XX) ================== - Move IMAPMockServer to its own module. +- Display feedback message when testing a mailing profile. 3.2.8 (2019-10-01) ================== diff --git a/mayan/apps/mailer/views.py b/mayan/apps/mailer/views.py index b2477c422e..bdae6df508 100644 --- a/mayan/apps/mailer/views.py +++ b/mayan/apps/mailer/views.py @@ -1,5 +1,6 @@ from __future__ import absolute_import, unicode_literals +from django.contrib import messages from django.http import Http404, HttpResponseRedirect from django.shortcuts import get_object_or_404 from django.template import RequestContext @@ -248,6 +249,9 @@ class UserMailerTestView(FormView): def form_valid(self, form): self.get_object().test(to=form.cleaned_data['email']) + messages.success( + message=_('Test email sent.'), request=self.request + ) return super(UserMailerTestView, self).form_valid(form=form) def get_extra_context(self):