So I’m trying to make a twine game where students will write text which then gets saved as a variable and can be emailed to their teacher easily.
I’ve found this html to open up and populate the OS’s default email, but I’m unable to get the story variables working within it:
<a href="mailto:$teacheremail?&subject=$studentwork&body=$work">Email your Teacher</a>
It should open up the default email (on OS that support it) and populate the email, subject and body automatically (the three variables have been set previously). Instead, it just treats the variables as strings.
I’m sure this can be fixed easily, but I’m not sure how. Thanks so much for your help!