7 Replies Latest reply on Nov 14, 2015 1:28 AM by knuckle_sandwich

    Javascript: add name to mail subject through variable

    knuckle_sandwich

      Hello,

       

      just as mentioned, I'm trying to add a form field's content to the mail subject created through mailDoc method.

       

      This is the idea:

       

      var mailto= this.getField("FIELD1").value;

      this.mailDoc({

      bUI: false,

      cTo: "RECIPIENT1",

      cCC: "RECIPIENT2",

      cSubject: "MAIL SUBJECT" + mailto,

      cMsg: "Hello"

      });

       

      This code is getting me nowhere, the mail window doesn't even open. Cannot figure out what's wrong.

      Any feedback appreciated

       

      Thanks