Commit 5d796989 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

Replaced feedback form mail handler, Refs #1027

Replaced send_async with django native send_mail
function.
parent 1eb88c25
......@@ -17,6 +17,10 @@ QUEUES
and run the amqp-deleteq tool for each declared queue. Alternatively,
amqp-utils can be installed with: sudo gem install amqp-utils.
UI
* Feedback form now uses django native send_mail for sending emails.
Proper django settings should be set for feedback mails to work
(https://docs.djangoproject.com/en/dev/topics/email/)
v0.5.3 -> v0.5.4
REPOSITORY
......
......@@ -42,7 +42,7 @@ from django.shortcuts import render_to_response
from django.template.loader import render_to_string
from django.core.urlresolvers import reverse
from synnefo.logic.email_send import send_async
from django.core.mail import send_mail
from django.http import Http404
......@@ -236,13 +236,8 @@ def feedback_submit(request):
if settings.DEBUG:
print mail_subject, mail_content
for email in FEEDBACK_CONTACTS:
send_async(
frm = FEEDBACK_EMAIL_FROM,
to = "%s <%s>" % (email[0], email[1]),
subject = mail_subject,
body = mail_content
)
send_mail(mail_subject, mail_content, FEEDBACK_EMAIL_FROM,
dict(FEEDBACK_CONTACTS).values(), fail_silently=False)
return HttpResponse("ok");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment