diff --git a/src/account/auth_pipeline.py b/src/account/auth_pipeline.py index 1e9d01f081c694642564ec7ac9088553b6343535..2c6c425141b501f97434282198a79b82252f70ed 100644 --- a/src/account/auth_pipeline.py +++ b/src/account/auth_pipeline.py @@ -1,5 +1,6 @@ from django.core import exceptions from django.http import HttpResponseServerError +from django.core.mail import send_mail from . import models @@ -10,3 +11,4 @@ def create_profile(backend, user, response, *args, **kwargs): user.profile except exceptions.ObjectDoesNotExist: models.Profile.objects.create(user=user) + send_mail('TESZT', 'Attiss meleg!4!!', 'noreply@keszkepzes.sch.bme.hu', user.email) diff --git a/src/kszkepzes/settings/base.py b/src/kszkepzes/settings/base.py index 81c4c312ca29701d68ee60bc47cce4d23d10ce47..305d41c9b79a4a00ce7db8f44e75c5ad7fa12f80 100644 --- a/src/kszkepzes/settings/base.py +++ b/src/kszkepzes/settings/base.py @@ -158,3 +158,7 @@ STATIC_URL = '/django-static/' MEDIA_ROOT = os.getenv('MEDIA_ROOT', '/tmp') MEDIA_URL = '/media/' + +EMAIL_HOST = 'mail.sch.bme.hu' +EMAIL_PORT = 587 +EMAIL_USE_TLS = True