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.
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.)
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!
It would be great if the staff could put together the sample script for those of us who are asking, sometimes we just want to copy and paste, not learn Java :)
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.
10 Replies
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.)
Phil I'm looking to do the same thing but I don't care if they have to hit send is this possible?
Thanks for everybody's help we got it fixed.
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!
can you share how to do it?
thanks
This thread is a bit older, so you may want to message folks here directly using the "contact me" button on their profile.
How did you do it Kevin?
Hey Mel,
This conversation has been around awhile, and I'm not sure if Kevin is still subscribed here. You are welcome to try to reach him directly here.
It would be great if the staff could put together the sample script for those of us who are asking, sometimes we just want to copy and paste, not learn Java :)
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.