diff --git a/public/js/legacy/widgets/form/form.js b/public/js/legacy/widgets/form/form.js
index ef94e87128..8061016a2d 100644
--- a/public/js/legacy/widgets/form/form.js
+++ b/public/js/legacy/widgets/form/form.js
@@ -211,7 +211,8 @@ _f.Frm.prototype.email_doc = function(message) {
subject: get_doctype_label(this.meta.name) + ': ' + this.docname,
recipients: this.doc.email || this.doc.email_id || this.doc.contact_email,
attach_document_print: true,
- message: message
+ message: message,
+ real_name: this.doc.real_name || this.doc.contact_display || this.doc.contact_name
});
}
diff --git a/public/js/wn/views/communication.js b/public/js/wn/views/communication.js
index e746d50e0d..fbd4816e00 100644
--- a/public/js/wn/views/communication.js
+++ b/public/js/wn/views/communication.js
@@ -223,8 +223,13 @@ wn.views.CommunicationComposer = Class.extend({
signature = signature.replace(/\n/g, "
");
}
+ if(this.real_name) {
+ this.message = '
Dear ' + this.real_name + ",
" + (this.message || ""); + } + if(comm_list.length > 0) { - fields.content.input.set_input("" + fields.content.input.set_input((this.message || "") + + "" + signature +"" +"-----In response to-----"