Need to email with body text pre-populated

wee
wee Community Member Posts: 71
I need my users to click on a button, then compose a new email to [email protected] with a "body text" pre-populated in the email. Is this possible? I'm obviously looking for the quickest/simplest way without doing all the CGI stuff. This will be mounted on Saba LMS. Thank you so much for any help.



All users will be using MS Outlook.

Comments

  • wee
    wee Community Member Posts: 71
    Thanks, Trivantis. Copy and paste below, add action to send email.



    [email protected];?body=Type Your Body Text Here
  • wee
    wee Community Member Posts: 71
    In addition, does anyone know how the subject field and cc field can be pre-populated? I got the body text to work from what Trivantis suggested, but was wondering how to automatically add a subject and add an email address of the sender in the cc field. Thank you in advance.
  • ssneg
    ssneg Community Member Posts: 1,456 ♪ Opening Act ♪
    @Wee 59640 wrote:
    In addition, does anyone know how the subject field and cc field can be pre-populated? I got the body text to work from what Trivantis suggested, but was wondering how to automatically add a subject and add an email address of the sender in the cc field. Thank you in advance.


    [email protected]?subject=Hello from Lectora&body=How are you&[email protected]&[email protected]
  • wee
    wee Community Member Posts: 71
    Thank you, Sergey. I don't think I'm doing the CC and BCC correctly. I replaced the word "server" with "caci" (our domain/server)... is that right? Here's a screenshot.



    PS - Not sure if I explained myself clearly. On the cc field, I'd like it to automatically include the sender's email address. So, if I was to send the email, it would automatically add my email address in the cc field.



    Thank you so much, Sergey. I'm your biggest fan. Hahahahaha.
  • ssneg
    ssneg Community Member Posts: 1,456 ♪ Opening Act ♪
    Looks like it worked, but your email program said that addresses "[email protected]" and "[email protected]" do not exist (because they don't :)) You should replace the whole email with yours, e.g. [email protected]?subject=Hello from Lectora&body=How are you&[email protected] or [email protected]?subject=Hello from Lectora&body=How are you&[email protected], whatever your actual address is.
  • wee
    wee Community Member Posts: 71
    Sergey - What I meant is that, there will be 15,000 employees taking this course, then clicking on this button that will send/compose an email and I want the cc field to pre-populate the sender's email address automatically (so they can get a copy in their inbox).



    So say if you're one of the employees, it would pre-populate your email address in the cc field. Does that make sense?
  • ssneg
    ssneg Community Member Posts: 1,456 ♪ Opening Act ♪
    Ah, got it. We need to get the learners email from somewhere, then add it to the email string.

    LMS reports two strings to Lectora:

    - student_id, which is often student's email (if it is so in your case, we're in luck) but can also be employee number or a some other string

    - student_name, which can be transformed into learner's email if CACI emails are based on names. This is not a robust option because there are always emails that break the rules.



    If we cannot get student's email address from LMS via SCORM, we'll need to get it somehow else. Ask learner to enter it on the first page? Or prompt for email address when he clicks the button?
  • wee
    wee Community Member Posts: 71
    The variable that will work is AICC_Student_ID



    Saba LMS uses first name initial and last name as AICC_Student_ID, so my ID is wthansom (Wee Thansom) and our email system is the same i.e. [email protected]



    Now the big question is, how do I add @caci.com to wthansom? Thank you so much, Sergey.
  • ssneg
    ssneg Community Member Posts: 1,456 ♪ Opening Act ♪
    Create a new variable, let's call it "FullEmail". Setup actions on the button:

    1) FullEmail - modify var - set by variable - AICC_Student_ID

    2) FullEmail - modify var - add to variable - "@caci.com"

    3) Send email to "VAR(FullEmail)" (no quotes)



    I'm travelling now so I'm writing this without Lectora, apologies if I missed anything.
  • wee
    wee Community Member Posts: 71
    Here's how I have the send email action setup:



    [email protected]?subject=Completion of the BYOD Employee Agreement&cc=VAR(FullEmail)&body=Please activate this employee in the BYOD program.



    It's not executing VAR(FullEmail). It's in the proper CC field, but as VAR(FullEmail).