Need to email with body text pre-populated
January 10, 2014 12:00 AM
I need my users to click on a button, then compose a new email to XYZ@abcde.com 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.
Discussion (10)
Thanks, Trivantis. Copy and paste below, add action to send email.
support@trivantis.com;?body=Type Your Body Text Here
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.
Looks like it worked, but your email program said that addresses "secret@caci.com" and "copy@caci.com" do not exist (because they don't :)) You should replace the whole email with yours, e.g. support@trivantis.com?subject=Hello from Lectora&body=How are you&cc=wee@caci.com or support@trivantis.com?subject=Hello from Lectora&body=How are you&cc=name.surname@caci.com, whatever your actual address is.
@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.
support@trivantis.com?subject=Hello from Lectora&body=How are you&cc=copy@server.com&bcc=secret@server.com
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?
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.
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.
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?
Here's how I have the send email action setup:
CIS_Mobility@caci.com?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).
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. wthansom@caci.com
Now the big question is, how do I add @caci.com to wthansom? Thank you so much, Sergey.
Discussions have been disabled for this post