How to post a web form from another web site

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:

i have tied it but i faced the issue of cross domain specially i’m using javascript to do the post, any workaround ?? No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘’ 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