Java Script for auto email

Aug 01, 2013

HI all,

I have been searching for a java script to auto email when button is clicked in storyline.

Ideally I would like for an email to be sent with a specific subject line to a specific email address without the u having to click on send from their default mail program.

Is this possible at all?

10 Replies
Phil Mayor

you cannot send an email directly with javascript, you can only open the email client.

You can use JavaScript to construct the values that the email will need and then make an AJAX request to a server resource that actually sends the email. (I don't know what server-side languages/technologies you're using, so that part is up to you.)

susana mascarenhas

Hello,  I am trying to achieve something similar and was wondering if any of you could help?

I have a quiz with an end result slide and would like to create a script that automatically generates an email (ok for user to press send, but would rather avoid it). I have no knowledge of Javascript so would really appreciate some help. 
Many thanks in advance!

Ashley Terwilliger-Pollard

Hi Ari,

I hear you, copy and paste is easy and helpful to get up and running with something like Javascript. The staff in ELH aren't equipped to write or edit Javascript, as it's not something we support, so hopefully, folks here in the Community can help and share what you need. 

We've documented some common examples here to help get you started! 

This discussion is closed. You can start a new discussion or contact Articulate Support.