Page 1 of 1

ho w to open email

Posted: Sat Nov 03, 2012 9:16 pm
by rammohan.acharyadasa

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


ho w to open email

Posted: Sat Nov 03, 2012 9:35 pm
by rammohan.acharyadasa

some thing like,
app.mobileEmail etc..


ho w to open email

Posted: Sat Nov 03, 2012 11:58 pm
by maxkatz

ho w to open email

Posted: Sun Nov 04, 2012 1:39 pm
by Emmz

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&quot// Force New Line
var TempEmail = "mailto:persons_email@website.com?&quot
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..


ho w to open email

Posted: Sun Nov 04, 2012 4:17 pm
by rammohan.acharyadasa

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


ho w to open email

Posted: Sun Nov 04, 2012 5:30 pm
by Emmz

Your welcome... :)