Forum Discussion

DimitriosKavour's avatar
DimitriosKavour
Community Member
3 years ago

Contact Form

Hi guys, I found this template with an email submission form. https://community.articulate.com/download/flat-design-portfolio It has a javascript for sending the message, but I don't know how to configure it with the destination email. Can you help me?
The javascript is:
var player = GetPlayer();

var email=player.GetVar("email");
var subject=player.GetVar("subject");
var bodystart=player.GetVar("bodystart");

var mailto_link='mailto:'+email+'?subject='+subject+'&body='+bodystart; win=window.open(mailto_link,'emailWin'); 

  • Nedim's avatar
    Nedim
    Community Member

    Hi Dimitrios,

    See the attached screenshot.

  • var mailto_link='mailto:'+email+'?subject='+subject+'&body='+bodystart; win=window.open(mailto_link,'emailWin'); 

    Where it is bolded in the code above +email+ you will need to add your email here.