Hi All,
Can anyone please let me know if it is better to use system.openURL( "mailto: … ) rather than native.showPopup( “mail”, options ).
Is there any difference between the two and if so what are the pro’s and con’s of both?
Secondly, I have an issue with inserting line breaks in the body of the email - the standard \n does not work.
e.g.
[lua]
system.openURL( “mailto:test@hotmail.com?subject=Test Subject&body=Line1\n\nLine2\n\nLine 3” )
[/lua]
or
[lua]
local options =
{
to = “test@hotmail.com”,
subject = “Test Subject”,
body = “Line1\n\nLine2\n\nLine3”,
}
native.showPopup( “mail”, options )
[/lua]
Both of the above bring up the Compose EMail dialog but neither give me the line breaks I require in the body - all I get in the body is “Line1Line2Line3”.
Any help would be greatly received.
Thanks