From 34bb97c69ddd9bc56994e6f3fabf8fcbc47925db Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Thu, 10 Mar 2016 15:30:38 +0530 Subject: [PATCH] [fix] email should have fully qualified URLs --- frappe/email/email_body.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frappe/email/email_body.py b/frappe/email/email_body.py index 55f3baf757..e85c70a5ab 100644 --- a/frappe/email/email_body.py +++ b/frappe/email/email_body.py @@ -211,8 +211,6 @@ class EMail: return self.msg_root.as_string() def get_formatted_html(subject, message, footer=None, print_html=None, email_account=None): - message = scrub_urls(message) - if not email_account: email_account = get_outgoing_email_account(False) @@ -225,7 +223,7 @@ def get_formatted_html(subject, message, footer=None, print_html=None, email_acc "subject": subject }) - return rendered_email + return scrub_urls(rendered_email) def get_signature(email_account): if email_account and email_account.add_signature and email_account.signature: