x


Emailing from within Unity iPhone or Android

Is it possible to interface with email -- whether native on the device, or some built-in protocol to send email in Unity?

more ▼

asked Dec 27 '10 at 05:29 AM

ina gravatar image

ina
3.3k 492 548 597

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

Its possible but you will need to write own plugins to do so to use the platforms native functionality for it, Unity does not hook up any such functionality. I think Prime31 has such a plugin and the Unity EP from Bliprob contains such functionality as well.

The mailapi is rather simple, its a matter of a single function to get the view to show, let the user feed the data and send it. You can prefill the mail if required

more ▼

answered Dec 27 '10 at 05:32 AM

Dreamora gravatar image

Dreamora
3.2k 1 4 25

Thanks for the link to Prime31, very nice.

Dec 27 '10 at 06:27 AM Jean Fabre
(comments are locked)
10|3000 characters needed characters left

Should be able to use the .NET smtp classes, e.g. http://msdn.microsoft.com/en-us/library/system.net.mail.smtpclient.aspx

If they don't work, you could use WWW (from the Unity API) to send to a webserver, which creates and sends the email

more ▼

answered Dec 27 '10 at 05:31 AM

Mike 3 gravatar image

Mike 3
30.5k 10 65 252

http://System.Net its likely only partially there. In addition http://System.Net generally its a iOS Pro only feature.

Dec 27 '10 at 05:33 AM Dreamora

the WWW approach caveat is that users could end up abusing your server for sending email spam. the easiest would be to just have them send it locally from within the app, so the liability's on their device

Dec 27 '10 at 06:00 AM ina

(not to mention bandwidth costs - for something like a screenshot to email option)

Dec 27 '10 at 06:00 AM ina
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2455
x1999
x524
x49

asked: Dec 27 '10 at 05:29 AM

Seen: 2117 times

Last Updated: Apr 02 at 12:04 AM