diff --git a/frappe/templates/pages/contact.py b/frappe/templates/pages/contact.py index 8e37faca8d..89fcc7c9a2 100644 --- a/frappe/templates/pages/contact.py +++ b/frappe/templates/pages/contact.py @@ -45,6 +45,4 @@ def send_message(subject="Website Query", message="", sender=""): from frappe.utils.email_lib import sendmail sendmail(forward_to_email, sender, message, subject) - frappe.response.status = "okay" - - return True \ No newline at end of file + return "okay" \ No newline at end of file diff --git a/frappe/website/js/website.js b/frappe/website/js/website.js index e6a2af0ff0..820ae2ee5d 100644 --- a/frappe/website/js/website.js +++ b/frappe/website/js/website.js @@ -158,7 +158,7 @@ $.extend(frappe, { send_message: function(opts, btn) { return frappe.call({ type: "POST", - method: "frappe.website.doctype.contact_us_settings.templates.pages.contact.send_message", + method: "frappe.templates.pages.contact.send_message", btn: btn, args: opts, callback: opts.callback