1

How could I best send a message using the Android from an external email address to the user's email address or SMS?

For example, when the phone senses acceleration, it sends a message from youdroppedme@gmail.com to the user's gmail account.

I would prefer to use the core API, if possible. I am also considering using a web server as a go between. What is the most elegant solution?

Thank you!

Geekgirl
  • 1,322
  • 3
  • 11
  • 17

1 Answers1

0

How about this answer? It sends email in android using the JavaMail API using Gmail authentication.

Community
  • 1
  • 1
Bryan Denny
  • 27,363
  • 32
  • 109
  • 125
  • Looks good- but for some reason it isn't working for me. I think I must be doing something wrong on my end: it compiles fine, and when I look at the debugger it doesn't catch an exception when sending the mail, but not emails appear in my inbox. Ideas? – Geekgirl Nov 15 '10 at 16:49
  • @Geekgirl I haven't actually used it. Is it setup using the correct smtp server information or ports? Is it showing up in your spam box? – Bryan Denny Nov 15 '10 at 18:33