I am trying to email a link through my app which actually opens the app if it installed in their phone.
var ch ="<a href='Myapp://?var1="+var1+"&var2="+var2+"'>Click Here</a>";
emailDialog.messageBody = ch;
I have set the email dialog to send emails as html. But at the receiving end to user, who opens up the email in safari or any browser, the link looks like this <a>Click Here</a>
When i have another app with a local html opened in webview and also hardcoding the above url in the html.. it works perfectly.. Problem is that the url changes when sent through email from phone or browser...
Can somebody please guide on forming the url and setting it message body.. when sending it through Ti.UI.EmailDialog?
In most html mail scenarios, you need to add the html and body tags around your content, just as if it was an html page. The clients do this automagically in most situations, and some even include default stylesheets. I don't know if the titanium code does that automatically for you, of it its the programmers responsibility to do that.
Think you can help? Login to answer this question!