Formatting Emails sent from Captivate
This community is great. I have spent hours learning Captivate from it.
I want to use an email to send feedback on the eLearning course I have created.
I found the basics at: Solved: Send an e-mail at the end of Captivate Project - Adobe Support Community - 8463641
I can collect the feedback in a text entry box, or a series of TEBs.
But I'd like to format the email with at least a carriage return or two. I can't seem to get that past the encodeURI function. Here's what I've tried:
{
var who = window.cpAPIInterface.getVariableValue("cpInfoEmail");
var mySubject = encodeURI(window.cpAPIInterface.getVariableValue("cpInfoProjectName") + " Feedback");
var myText = encodeURI("My feedback is: " +"<br>");
var myBody =encodeURI(FeedbackTextEntryBox);
window.open("mailto:" + who + "?subject=" +mySubject + "&body=" + myText + myBody);
}
which very politely results in
"My feedback is: <br> " followed by the TEB text. No carriage return.
I've tried every variation of "\n" and "%0D", I can think of. Trying to use escape characters results in the code failing. Using encodeURIcomponent instead of encodeURI also fails, though it might be because of the wrong CR entry.
How can I get a plain carriage return into an email?
