rammohan.acharyadasa
Posts: 0
Joined: Thu Apr 05, 2012 5:03 pm

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

rammohan.acharyadasa
Posts: 0
Joined: Thu Apr 05, 2012 5:03 pm

ho w to open email

some thing like,
app.mobileEmail etc..

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

ho w to open email

Emmz
Posts: 0
Joined: Sat Jun 23, 2012 11:06 pm

ho w to open email

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..

rammohan.acharyadasa
Posts: 0
Joined: Thu Apr 05, 2012 5:03 pm

ho w to open email

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

Emmz
Posts: 0
Joined: Sat Jun 23, 2012 11:06 pm

ho w to open email

Your welcome... :)

Return to “Issues”