12 Replies
Abhishek Roy

actually i want to create an interface where one can compose an email just like a email client.

the To field will be fixed as xyz@gmail.com

in From field the user will put his/her email id

and in Body will write the message.

i just want 3 field : To, From, Body.

i think "Send Email to" trigger will just send an email.it will not let us to compose an email (write a message and send it within storyline).

Wendy Farmer

Hi Joydeep

I found this javascript

www.articulate.com/support/.../javascript-best-practices-and-examples

Launch new email message

var email="yourAddress@email.com";
var subject="subject line";
var body_start="How you want to begin your body.";
var mailto_link='mailto:'+email+'?subject='+subject+'&body='+body_start;
win=window.open(mailto_link,'emailWin');

Abhishek Roy

but is it possible to create an interface like an email client within storyline ?

only 4 fields are needed : To, From, Subject, Body

the To field will be fixed as xyz@gmail.com and subject will be feedback.

the below script launches a seperate email client in windows explorer or a new browser.

Launch new email message

var email="yourAddress@email.com";
var subject="subject line";
var body_start="How you want to begin your body.";
var mailto_link='mailto:'+email+'?subject='+subject+'&body='+body_start;
win=window.open(mailto_link,'emailWin');

Wendy Farmer

Hi Joydeep

I don't know Javascript but found this after searching http://stackoverflow.com/questions/13457684/how-to-prevent-mailto-event-from-opening-a-new-tab-in-browser

not sure if it helps you - here is one of the threads

"Try naming the window (myWindow) and adding a close() command:

echo 'myWindow=window.open("mailto:' . $email . '"); myWindow.close();';

This should close the extra browser window and keep the email application open. "

Ashley Terwilliger

Hi Judy,

When using the send email trigger you'll want to keep the following things in mind:

  • The learner must have an email client installed (for example, Microsoft Outlook), and they must have an email account configured in the program.
  • The email client program must allow JavaScript and HTML submits. Some programs, like Lotus Notes and Groupwise, don't allow these features. As a result, email triggers won't work in these programs.

Tighter security restrictions in modern web browsers, operating systems, and anti-virus programs can also interfere with email triggers. We also recommend testing published content in its final environment to determine if email triggers will work as expected. You can find some information in this article in regards to a few web servers you're welcome to use for testing.