summaryrefslogtreecommitdiffstats
path: root/askbot/mail
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-09-28 00:29:02 -0300
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-09-28 00:29:02 -0300
commit364633a40e2bfb820e8ddb48252eb614c2985753 (patch)
tree30f792c64c38f00a7f3fae288f5385509cce056d /askbot/mail
parent1e47fb23634dbdf406a3e8893120793b7e065da5 (diff)
downloadaskbot-364633a40e2bfb820e8ddb48252eb614c2985753.tar.gz
askbot-364633a40e2bfb820e8ddb48252eb614c2985753.tar.bz2
askbot-364633a40e2bfb820e8ddb48252eb614c2985753.zip
hopefully fixed the image urls in the email alerts
Diffstat (limited to 'askbot/mail')
-rw-r--r--askbot/mail/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/askbot/mail/__init__.py b/askbot/mail/__init__.py
index 2d314dbc..74aa27e9 100644
--- a/askbot/mail/__init__.py
+++ b/askbot/mail/__init__.py
@@ -17,6 +17,7 @@ from askbot import const
from askbot.conf import settings as askbot_settings
from askbot.utils import url_utils
from askbot.utils.file_utils import store_file
+from askbot.utils.html import absolutize_urls
from bs4 import BeautifulSoup
#todo: maybe send_mail functions belong to models
@@ -116,6 +117,7 @@ def send_mail(
if raise_on_failure is True, exceptions.EmailNotSent is raised
"""
+ body_text = absolutize_urls(body_text)
try:
assert(subject_line is not None)
subject_line = prefix_the_subject_line(subject_line)
@@ -143,6 +145,7 @@ def mail_moderators(
):
"""sends email to forum moderators and admins
"""
+ body_text = absolutize_urls(body_text)
from django.db.models import Q
from askbot.models import User
recipient_list = User.objects.filter(