Generating an email from a screen
Posted: Fri Mar 15, 2013 5:54 pm
We are trying to generate an email from by clicking on an email address displayed on a screen. We want to populate the subject with an order # also to be found on the screen. At this stage I've hardcoded something into the subject to get something going. This is what we've come up with after scouring the forums:
pui.link("mailto:"+(get("I_21_8")));pui.link("mailto:?subject=Wayne");
Oddly enough, this actually works sometimes. If it doesn't work and I click on the address again, it may display 2 emails; the first one with the "To:" and "Subject:" populated correctly and a second one with only the "Subject:" populated. We've played with this a bit and can't get it to work correctly on a consistent basis. And I've not even tried to "get" the order # yet. Could somebody help us out?
pui.link("mailto:"+(get("I_21_8")));pui.link("mailto:?subject=Wayne");
Oddly enough, this actually works sometimes. If it doesn't work and I click on the address again, it may display 2 emails; the first one with the "To:" and "Subject:" populated correctly and a second one with only the "Subject:" populated. We've played with this a bit and can't get it to work correctly on a consistent basis. And I've not even tried to "get" the order # yet. Could somebody help us out?