Explore the community Forums Lectora Lectora Questions & Answers Send document from Lectora to email

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #452129 Score: 0
    Profile photo of Heidi Strangberg
    Heidi Strangberg
    Member
    beginner
    intermediate
    contributor
    lab member
    verified member
    friend finder
    advocate
    curious george
    wise owl
    LUC17 Attendee
    3 pts
    @heidi

    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

    #452174 Score: 0
    Profile photo of Christie Calahan
    Christie Calahan
    Moderator
    beginner
    intermediate
    picture perfect
    profile
    curious george
    friend finder
    wise owl
    3 pts
    @ccalahan5405

    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.

    #452176 Score: 0
    Profile photo of Christie Calahan
    Christie Calahan
    Moderator
    beginner
    intermediate
    picture perfect
    profile
    curious george
    friend finder
    wise owl
    3 pts
    @ccalahan5405

    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.

     

     

    #452178 Score: 0
    Profile photo of CarlFink
    CarlFink
    Member
    beginner
    intermediate
    contributor
    LUC16 Attendee
    wise owl
    curious george
    advanced
    friend finder
    48 pts
    @CarlFink

    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.

    #452271 Score: 0
    Profile photo of Math Notermans
    Math Notermans
    Member
    contributor
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    LUC16 Attendee
    LUC16
    wise owl
    curious george
    131 pts
    @mnotermans5114

    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 adress@mail.com“,
    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

    #452273 Score: 0
    Profile photo of CarlFink
    CarlFink
    Member
    beginner
    intermediate
    contributor
    LUC16 Attendee
    wise owl
    curious george
    advanced
    friend finder
    48 pts
    @CarlFink

    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?

    #452288 Score: 0
    Profile photo of Heidi Strangberg
    Heidi Strangberg
    Member
    beginner
    intermediate
    contributor
    lab member
    verified member
    friend finder
    advocate
    curious george
    wise owl
    LUC17 Attendee
    3 pts
    @heidi

    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.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.