0

I've created a contact us form. I followed this tutorial: http://mobile.tutsplus.com/tutorials/android/android-sdk-creating-forms/

The tutorial is cut short though. So I've done everything, it gathers the information once a user hits the submit button.

Can anyone fill me in with the rest? How do I get the data sent my email address?

Thanks in advance, really appreciate the help! Bit annoying after getting everything else.

RED_
  • 2,997
  • 4
  • 40
  • 59
  • "How do I get the data sent to my email address" - maybe open your email client or the site of your webmail provider, then log in? –  Jul 15 '12 at 21:11
  • Do you want the email to be sent on the background, or are you happy for the email app to be opened, pre populated with your address and the message etc? – barry Jul 15 '12 at 22:23
  • @barry it's not actually an email though is it? To answer your question I would like the information in the form sent in the background, without having to open another app. The thing is, if they decide to not supply an email then fair enough, i could still do with the rest of the information. I guess that would talk a server or something though. – RED_ Jul 15 '12 at 22:43

1 Answers1

0

I'm not an Android developer, but the principles apply everwhere.

You need to use an SMTP client that connects to an SMTP server to send the mail.

Take a look at this Q&A for an example of how to do this: Sending Email in Android using JavaMail API without using the default/built-in app

Community
  • 1
  • 1
Dai
  • 141,631
  • 28
  • 261
  • 374
  • Seems like quite the project, didn't realise it was this complicated. Lots of information there though so I'll look into it, thanks! I'm only sending information one way so no need to get their username/password for one. – RED_ Jul 15 '12 at 21:19
  • The username and password are used to authenticate against Google's SMTP server. This is to help prevent spam. – Dai Jul 15 '12 at 21:40