I have a cordova application that I want to run on desktops using Node Webkit.
I need to replace the cordova.plugins.email () function with Node Webkit equivelant, but I'm struggling to find the information I need.
Can anyone help?
//email composer $('#stage').on('click', '#email', function(event){ var pdfatt = (this.getAttribute('data-pdfemail')); var profforename = window.localStorage.getItem('profForename'); var profsurname = window.localStorage.getItem('profSurname'); var profemail = window.localStorage.getItem('profEmail'); cordova.plugins.email.isAvailable( function (isAvailable) { cordova.plugins.email.open({ body:'<p><img src="wp-content/uploads/2016/06/Email_Header.jpg"/></p><br><br>From:<p>'+profforename+' '+profsurname+'</p><p>Tel:'+proftel+'</p><p>Mob: '+profmob+'</p><p>Email: '+profemail+'</p><br><br><a href="'+pdfatt+'"><img height="30px" src='+baseurl+'"/wp-content/uploads/2016/06/download-pdf.jpg"/><br>Click To Download the PDF</a><br><br><br><p><img src="/wp-content/uploads/2016/06/Email_Footer.jpg"/></p>', subject: 'subject', isHtml: true }); //alert('Service is not available') unless isAvailable; } ); });
The above code basically opens a new email and pre-populates the email. I can not find much information on how to do this. I came across nodemailer, but I donβt think that this is what I need, since I would like to open and send email in Outlook and pre-populate, leaving the user to add an email address.
Many thanks
source share