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!