ho w to open email
in my app when i click on button i wan to open email compose window(default email setup done for the app)
how to achieve this using tiggzi
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
in my app when i click on button i wan to open email compose window(default email setup done for the app)
how to achieve this using tiggzi
some thing like,
app.mobileEmail etc..
Try This... Tested on Browsers and Android Works great !
Format is. code
mailto:persons_email@website.com?subject=My Subject&body=My Body/code
Custom JS Example
codevar nl = "%0A"// Force New Line
var TempEmail = "mailto:persons_email@website.com?"
var TempSubject = "subject=My Subject " + localStorage.getItem('1') + " " + localStorage.getItem('2');
var TempBody = "&body=This Message body stuff: " + localStorage.getItem('bodycontent') + nl + "more stuff" + nl;
var EmailContent = TempEmail + TempSubject + TempBody;
//now create email
window.location.href = EmailContent;/code
WARNING!!
Strip special characters like # ( / etc. from user entered content.
It screws up the parse of the email.
eg. If Subject line contains Your order # is this.
Email generated will only show "Your order #" And body will be missing as well..
Neil
it is working fine. That is what i was looking. as i want to handle imagelclick event with custom javascript.
it is working great/. thanks a lot
Your welcome... ![]()