Permalink
Browse files

Don't send emails on new team signup.

  • Loading branch information...
nicksergeant committed Nov 3, 2016
1 parent 08883c0 commit 420f6975dca9f7b659598d3816636cf3619fc6e7
Showing with 0 additions and 12 deletions.
  1. +0 −12 teams/views.py
View
@@ -1,11 +1,8 @@
-import os
import uuid
from annoying.decorators import render_to
-from django.conf import settings
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User
-from django.core.mail import send_mail
from django.http import Http404, HttpResponseRedirect, HttpResponseBadRequest
from django.shortcuts import get_object_or_404
from teams.models import Team
@@ -37,15 +34,6 @@ def for_teams_complete(request):
team.user = user
team.save()
- send_mail('[Snipt] New team signup: {}'.format(team.name),
- """
- Team: https://snipt.net/{}
- Email: {}
- """.format(team.slug, team.email),
- os.environ.get('POSTMARK_EMAIL', 'support@snipt.net'),
- ['nick@snipt.net'],
- fail_silently=False)
-
return {
'team': team
}

0 comments on commit 420f697

Please sign in to comment.