summaryrefslogtreecommitdiffstats
path: root/askbot/mail/lamson_handlers.py
diff options
context:
space:
mode:
Diffstat (limited to 'askbot/mail/lamson_handlers.py')
-rw-r--r--askbot/mail/lamson_handlers.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/askbot/mail/lamson_handlers.py b/askbot/mail/lamson_handlers.py
index 728203e6..0aa51629 100644
--- a/askbot/mail/lamson_handlers.py
+++ b/askbot/mail/lamson_handlers.py
@@ -1,6 +1,7 @@
import re
import functools
from django.core.files.uploadedfile import SimpleUploadedFile
+from django.core.urlresolvers import reverse
from django.conf import settings as django_settings
from django.template import Context
from django.template.loader import get_template
@@ -10,6 +11,7 @@ from lamson.server import Relay
from askbot.models import ReplyAddress, Group, Tag
from askbot import mail
from askbot.conf import settings as askbot_settings
+from askbot.utils.html import site_url
#we might end up needing to use something like this
#to distinguish the reply text from the quoted original message
@@ -239,7 +241,7 @@ def VALIDATE_EMAIL(
data = {
'site_name': askbot_settings.APP_SHORT_NAME,
- 'site_url': askbot_settings.APP_URL,
+ 'site_url': site_url(reverse('questions')),
'ask_address': 'ask@' + askbot_settings.REPLY_BY_EMAIL_HOSTNAME,
'can_post_by_email': user.can_post_by_email()
}
@@ -307,7 +309,7 @@ def PROCESS(
#todo: this is copy-paste - factor it out to askbot.mail.messages
data = {
'site_name': askbot_settings.APP_SHORT_NAME,
- 'site_url': askbot_settings.APP_URL,
+ 'site_url': site_url(reverse('questions')),
'ask_address': 'ask@' + askbot_settings.REPLY_BY_EMAIL_HOSTNAME
}
template = get_template('email/re_welcome_lamson_on.html')