I must have forgotten a step in making an email button that will pull the data from a form field into the subject line of an email and let me create the body of an email.
I am taking a Button and adding a Click event of:
var Mailto = "firstname.lastname@example.org";
var BetreffSubject = Legal_Name.rawValue;
var NachrichtMessage = "This is line 1.\r\rConfidentiality Notice!\rThis is the start of the third line ";
var Mail = "mailto:" + Mailto + "?Subject=Site Report for " + BetreffSubject + "&Body=" + NachrichtMessage ;
When I click on the button, nothing happens. what am I doing wrong?
Solved! Go to Solution.