mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-15 15:22:17 +00:00
Try sending mails and fail gracefully if unsuccessful
This commit is contained in:
@@ -156,7 +156,10 @@ def update_application(request, applicationid):
|
|||||||
subject = render_to_string('hr/emails/%s_subject.txt' % message_type, { 'app': app })
|
subject = render_to_string('hr/emails/%s_subject.txt' % message_type, { 'app': app })
|
||||||
subject = ''.join(subject.splitlines())
|
subject = ''.join(subject.splitlines())
|
||||||
message = render_to_string('hr/emails/%s.txt' % message_type, { 'app': app })
|
message = render_to_string('hr/emails/%s.txt' % message_type, { 'app': app })
|
||||||
#send_mail(subject, message, settings.DEFAULT_FROM_EMAIL, [application.user.email])
|
try:
|
||||||
|
send_mail(subject, message, settings.DEFAULT_FROM_EMAIL, [application.user.email])
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
if len(application.user.redditaccount_set.all()) > 0:
|
if len(application.user.redditaccount_set.all()) > 0:
|
||||||
from reddit.api import Inbox
|
from reddit.api import Inbox
|
||||||
|
|||||||
Reference in New Issue
Block a user