Javascript to open an email window and attach a certificate
Aug 19, 2015
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
Hi Marie,
Although we dont' support the creation of certificates, you could look at implementing the method here. It'll generate an HTML page, that the user would need to print or save though
Hopefully folks in the community have additional thoughts for you as well!
You cannot add attachments to emails using the mailto: function.
You couple maybe accomplish this with php, but since I don't know php that well I cant confirm this.
Thanks Jackson for confirming that element here.
Marie-Pierre,
I can't offer you a help but just wanted to thank you for your post. This is something I've been looking for, and it worked great (I'm now trying to see if I can add more field that a user can enter information before sending the email).
This discussion is closed. You can start a new discussion or contact Articulate Support.