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');
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');
You'll need to use Javascript or another tool - as Storyline doesn't have an inbuilt element to help you compose and draft an email other than the "send email" trigger.
I hope other community members are able to chime in here and assist you.
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.
12 Replies
the To field will be fixed as xyz@gmail.com
Have you tried using the "Send Email to" trigger?
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).
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');
thanks.will try it ...
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');
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. "
thanks for this. i'll try it.
but is it possible to compose and send email within storyline without any 3rd party application or other browser window ?
i think i have seen something similar in this forum.but can't remember it.if anyone can provide that link in this forum.
Hi Joydeep,
You'll need to use Javascript or another tool - as Storyline doesn't have an inbuilt element to help you compose and draft an email other than the "send email" trigger.
I hope other community members are able to chime in here and assist you.
thank you for your feedback ... but i think i have seen something similar in this forum ... though i can't remember it or have that link....
I've tried using the send email trigger, but nothing happens. What is supposed to happen?
The email trigger is the only trigger on the object, but nothing appears to happen when I click the screen object.
Hi Judy,
When using the send email trigger you'll want to keep the following things in mind:
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.
This discussion is closed. You can start a new discussion or contact Articulate Support.