improve email inbox

This commit is contained in:
Jesús
2020-09-13 14:54:30 -05:00
parent 0a06bf8a5d
commit 36f1d2e6ea
2 changed files with 10 additions and 2 deletions

View File

@@ -3,6 +3,10 @@ from django.urls import reverse
from django.core.mail import EmailMessage
from .models import Project
from .forms import ContactForm
from personalsite.settings import (
E_INCOMING,
E_NOREPLAY
)
def home(request):
@@ -20,8 +24,8 @@ def home(request):
msg = EmailMessage(
"Personal-Site: Nuevo mensaje",
"De {} <{}>\n\nEscribió:\n\n{}".format(name, email, content),
"noreply@heckyel.ga",
["heckyel@riseup.net"],
E_NOREPLAY,
[E_INCOMING],
reply_to=[email],
)
try: