- {{ content }} - | -
diff --git a/frappe/core/doctype/communication/communication.py b/frappe/core/doctype/communication/communication.py index d55d89cdea..dc7f150909 100644 --- a/frappe/core/doctype/communication/communication.py +++ b/frappe/core/doctype/communication/communication.py @@ -110,6 +110,7 @@ def get_customer_supplier(args=None): def send_comm_email(d, name, sent_via=None, print_html=None, attachments='[]', send_me_a_copy=False): footer = None + if sent_via: if hasattr(sent_via, "get_sender"): d.sender = sent_via.get_sender(d) or d.sender diff --git a/frappe/templates/emails/new_message.html b/frappe/templates/emails/new_message.html index b51e7129f4..a4a2ea933d 100644 --- a/frappe/templates/emails/new_message.html +++ b/frappe/templates/emails/new_message.html @@ -2,4 +2,4 @@
You have a new message from: {{ from }}
{{ message }}
Dear {{ first_name }}{% if last_name %} {{ last_name}}{% endif %},
A new account has been created for you.
Your login id is: {{ user }} -
Click on the button below to complete your registration and set a new password.
- +Click on the link below to complete your registration and set a new password.
+You can also copy-paste this link in your browser {{ link }}
Thank you,
-{{ user_fullname }}
- |
-
-
-
-
-
-
-
|
- - |
- |
-
-
-
-
-
+
+ {{ footer }}
- |
- - |