Register for our next webinar, 5 Keys to Unlock Storytelling in Your eLearning, where you'll learn how to unlock the magic of storytelling in your eLearning development to increase learner engagement and retention! Join Andrew Townsend, our Campaign Marketing Manager, on Thursday, December 3, 2020 at 11:00 AM MDT.

Be The First On Your Block to Rock Lectora® 21!


Apply for exclusive early access to the latest version of Lectora® Desktop v21. Seating is limited so make sure you apply now!

In need of help with your eLearning? Feel free to ask a question of the community! You can also visit our Knowledge Base or, if you're in need of immediate assistance, submit a case to our Customer Success team.

Send document from Lectora to email

heidiheidi Community Member Posts: 72 ☆ Roadie ☆
Hello,

our course has multiple entry fields throughout where the user can type in their answers, which we later display on a printable page at the end course. The page is set up so user can click Print and the document will print as a takeaway. On the Print Dialogue box, the user could also select "save as a PDF" if they have that ability on their own computer. (I assume we cannot create save as a PDF option within Lectora.) So, the Client would like the option to email this document to the user, or perhaps to a manager. Does anyone know if this is possible? Thanks, Heidi

Comments

  • ccalahan5405ccalahan5405 Community Member Posts: 10 ☆ Roadie ☆
    Are you trying to print a certificate?

    Otherwise, IF they print to PDF,  the actual PDF creation is handled outside of Lectora. It will ask them to save the PDF file, which they could then locate and email, or save to a shared file location. I don't think you can email it from there. Or you can create a certificate using KnowledgeLink (our LMS) - not sure if you use that but it's a great product.
  • ccalahan5405ccalahan5405 Community Member Posts: 10 ☆ Roadie ☆
    Hi Heidi,

     

    I got some help from my teammates:

     

    Lectora does have the certificate tool which creates a page with desired student details presented.  The user can perform the same print or save as pdf to retain the certificate. There is just no way to automatically attach this doc to an email and send it from the user's system.

    I think you would be able to append a 'emailmanagervariable' with the information and auto add that to the body of a mailto javascript function.

     

     
  • carlfinkcarlfink Community Member Posts: 646 ✶ Headliner ✶
    It looks as if you can send email if you are using xAPI: https://knowledgebase.elearningbrothers.com/xapi-email-lectora

    I haven't tried this, and can't. We don't use xAPI at my company.
  • mnotermans5114mnotermans5114 Community Member Posts: 916
    As i have a pure Javascript solution for sending email it is possible to add files to it.
    Let me check my code...

    Using SMTPJS script to mail directly without a users email-client..
    var studentNaam = VarstudentNaam.getValue();
    var mailAdress = VarmailAdress2.getValue()
    sendEmail(mailAdress,studentNaam,"my subject","my email text");

     

    function sendEmail(_to,_from,_subject,_body){
    Email.send({
    Host : "smtp.gmail.com",
    Username : "************",
    Password : "***********",
    To : _to,
    From : "from [email protected]",
    Subject : _subject+" van: "+_from,
    Body : _body
    }).then(
    function(value) {
    console.log(value);
    TweenMax.to($(".response", getDisplayDocument()), 0.5, {autoAlpha:1})
    }
    );
    }

     

    So basically you can add any file here...

    Regards,
    Math
  • carlfinkcarlfink Community Member Posts: 646 ✶ Headliner ✶
    Math, doesn't that require you to put a valid SMTP password in the JavaScript in cleartext? So anyone looking at the page's code could use your SMTP credentials to spam in your name?
  • heidiheidi Community Member Posts: 72 ☆ Roadie ☆
    Thanks for the offers to help, I appreciate the code also Math!

    BTW, this does not have anything to do with a Certificate and the client does not have an LRS and we cannot use a google doc, so the xAPI will not help.

    I convinced the client to accept the option Print to PDF (which most users have nowadays), but I wish there was an easy want to send info from Lectora via email.
Sign In or Register to comment.

So You Wanna Be An eLearning ROCKSTAR?

We're all fans of eLearning here! Want to become an eLearning ROCKSTAR? Just click on one of the buttons below to start your rocking journey!

Be The First On Your Block to Rock Lectora® 21!


Apply for exclusive early access to the latest version of Lectora® Desktop v21. Seating is limited so make sure you apply now!