how to use erpnext.send_message from another web site how to send the URL of my wrpnext web host ?
You can send a POST request using the REST API to:
with the appropriate parameters:
https://enwtrail2.frappecloud.com/api/method/frappe.templates.pages.contact.send_message. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://fiddle.jshell.net’ is therefore not allowed access.
You will have to find a better way to send the request, maybe relay it via your website. What platform are you using for that?
Thanks I’ve managed to use ASP.Net site to receive the request and post to ERPNext successfully