Improve syntax email

This commit is contained in:
Jesús
2020-09-13 18:06:10 -05:00
parent 36f1d2e6ea
commit bd3b934853
2 changed files with 6 additions and 6 deletions

View File

@@ -4,8 +4,8 @@ from django.core.mail import EmailMessage
from .models import Project
from .forms import ContactForm
from personalsite.settings import (
E_INCOMING,
E_NOREPLAY
EMAIL_FROM,
EMAIL_TO
)
@@ -24,8 +24,8 @@ def home(request):
msg = EmailMessage(
"Personal-Site: Nuevo mensaje",
"De {} <{}>\n\nEscribió:\n\n{}".format(name, email, content),
E_NOREPLAY,
[E_INCOMING],
EMAIL_FROM,
[EMAIL_TO],
reply_to=[email],
)
try: