I have a very simple Node.js Video Chat that I am using to call my friends. I want it to interface directly with Mail (open up Mail with a template loaded). I have this so far:
let obsPass = /* helpers.generateObsPassword() < randomly generated char */ 'zH1mA4pR2hF7wJ5'
var text = location.href + '&obs=' + obsPass;
window.open(`mailto:?subject=Join%20meeting&body=${text}`);
It works! The body for this Mail should be https://example.com?room=myroom&obs=zH1mA4pR2hF7wJ5, however, when I use this to open mail, the body doesn't say https://example.com?room=myroom&obs=zH1mA4pR2hF7wJ5, it says https://example.com?room=myroom. I think it has to do with the double query strings that I have (mailto:? and example.com?) which is causing the browser to think that the &obs=zH1mA4pR2hF7wJ5 is being applied to the bigger "website", mailto:.
Is there a fix for this? I could manually send the email, but I am hoping to integrate this into my site. Thanks!