Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
5d796989
Commit
5d796989
authored
Aug 31, 2011
by
Kostas Papadimitriou
Browse files
Replaced feedback form mail handler, Refs #1027
Replaced send_async with django native send_mail function.
parent
1eb88c25
Changes
2
Hide whitespace changes
Inline
Side-by-side
README.upgrade
View file @
5d796989
...
...
@@ -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
...
...
ui/views.py
View file @
5d796989
...
...
@@ -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"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment