Tell a friend button

i notice in some app you have a tell a friend button. You press on the button and it pause the game and bring up an email with text in from the developer of the game, the only thing you need to do is select your contract or type the email adress and press send.

Is this possible with unity? anybody has the code on this?

lesfundi

:frowning:

Check out this thread…

http://stackoverflow.com/questions/310946/how-can-i-send-mail-from-an-iphone-application

It describes several ways to do this.

From Unity, you can send launch the mail app and fill out the body and subject line. I believe you use something like the ‘openURL’ or ‘showURL’ command – you’ll have to look it up. The address is just a mailto: link.

In my app, I got the email message to display HTML from a remote server, but the sent email did not retain the HTML formatting and lost the images. I did not have time to find the cause (probably due to me not formatting the email body correctly) and left this feature out of the final App version.

Application.OpenURL(“mailto:YOUR_EMAIL”);
→ that did the job.
There must be an easy way to put in text in the subject line and email body.
Game without database connection can do it.

fundi

mailto:larry,dan?cc=mike&bcc=sue&subject=test&body=type+your&body=message+here