Javascript to open an email window and attach a certificate

Hello Everybody,

 

I am trying to accomplish a workaround for some of our staff who do not login into our LMS.

We need proof that they have completed some courses.  What I found to solve this issue, is to open up an email with a pre-determined message. 

Here is the javascript I used:

var email="mpdionne@bruyere.org";
var subject="Meditech training completed";
var body_start="Hello, this is to confirm tthat I have complete the Meditech part 2 training modules.";
var mailto_link='mailto:'+email+'?subject='+subject+'&body='+body_start;
win=window.open(mailto_link,'emailWin');

And it works really well!

I would also like to add my certificate of completion to this email as an attachment jpeg. 

Any help is greatly appreciated.

Thanks

4 Replies