I would like to add a button to my game that allows people to send an email with their high score to anyone on their addressbook. Does anyone know how to do this?
Thanks [import]uid: 8192 topic_id: 4084 reply_id: 304084[/import]
I would like to add a button to my game that allows people to send an email with their high score to anyone on their addressbook. Does anyone know how to do this?
Thanks [import]uid: 8192 topic_id: 4084 reply_id: 304084[/import]
try:
system.openURL(“mailto:you@you.com?subject=Corona%20SDK%20is%20awesome&body=It%20ROCKS”)
Carlos
[import]uid: 24 topic_id: 4084 reply_id: 12672[/import]
I tried that and nothing happens. If I put in a regular http url it works but the mailto command doesn’t seem to do anything. [import]uid: 8192 topic_id: 4084 reply_id: 12697[/import]
Got it. It works great. Any way to insert a picture? [import]uid: 8192 topic_id: 4084 reply_id: 12734[/import]
you will have to crack open the image from the file system, then base64 encoded the byte array, and send it as part of the email…
but i recall that at the point where you want to send an attachment, then the email format can’t be URL like the above, you will have to write your own email sequence and communicate directly with an smpt server…
Carlos.
[import]uid: 24 topic_id: 4084 reply_id: 12754[/import]
ouch!
[import]uid: 8192 topic_id: 4084 reply_id: 12755[/import]
Carlos what about a hyperlink? I tried to embed one in the url but it doesn’t hyperlink. I want to hyperlink the app address on itunes for people to buy the app. [import]uid: 8192 topic_id: 4084 reply_id: 12756[/import]
in the body just add the url
make sure you know how to encode the proper symbols like
"
c. [import]uid: 24 topic_id: 4084 reply_id: 12764[/import]
Carlos, Any way to have it go back to the game instead of the mail program after the email is completed? I have seen this in other games but probably not Corona made games. [import]uid: 8192 topic_id: 4084 reply_id: 14948[/import]
Any way to have it go back to the game instead of the mail program after the email is completed? +1
Also, the full guide to mailto links: http://yoast.com/guide-mailto-links/
[import]uid: 10426 topic_id: 4084 reply_id: 20549[/import]
Yes. Anyway to have it come back to to the game?
[import]uid: 8192 topic_id: 4084 reply_id: 24201[/import]
I can’t seem to insert a hyperlink in the body. I put in the address but it doesn’t hyperlink. I can’t find info on this on the internet. Since my searches just return the standard mailto syntax.
[import]uid: 8192 topic_id: 4084 reply_id: 24204[/import]
Same question as amigoni: how to come back to the application after sending a mail?
Thanks. [import]uid: 8970 topic_id: 4084 reply_id: 25959[/import]