I have a javascript code which generates an email. The page is on our corporate intranet so I know it will fire up the email ok.
the code looks something like this:
Expand|Select|Wrap|Line Numbers
- var ct9000 = document.getElementById("ct9000").value;
- var enddate = document.getElementById("105end").value;
- var fileloc = "file:///S:\folder1\folder2\folder - 3 \document.doc'";
- var body_message = "Please run "+job+", details as below:%0D%0DCT9000 ID: "+ct9000+"%0DEnd Date: "+enddate+"%0DATTN IT Ops Officer:%0DJob Notes at%0D"+fileloc;
- var mailto_link = 'mailto:'+email+'?subject='+subject+'&body='+body_message;
- win = window.open(mailto_link,'emailWindow');
- if (win && win.open &&!win.closed) win.close();
I have tried replacing the space characters with %20 - but the same thin happens.
You could argue that I could change the path so it doesn't contain spaces, but there are so many different paths/files that it would make it a mamoth task.
Thanks in advance...