0

I gave up the task of sending a background email...i've tried a lot of things but none of them seems to work.

I'm working for my dad's delivery restaurant. My app is supposed to send an email to our servers containing the order of the user.

I tried to send an email after pressing a button (without the gmail interface), directly from my activity. I wasn't able to achieve this, so i would like to ask you any other way to do something like this.

If there's no way, i'm thinking about using the default gmail interface. In this case i'd like to know if there's any option to avoid the user being able to modify the email content, adress and subject, just look it, and press send button.

Thank you.

Aldridge1991
  • 1,283
  • 5
  • 24
  • 49
  • I see you're new here. You might find some help in the many similar questions in the "Related" section to the right. – DOK Apr 19 '12 at 20:07
  • Thank you DOK. Unlikily i've been looking for an answer quite a lot...so i decided to ask, but i've not found anything yet... – Aldridge1991 Apr 19 '12 at 20:10
  • Hmmm, [this question](http://stackoverflow.com/questions/2020088/sending-email-in-android-using-javamail-api-without-using-the-default-android-a/2033124#2033124) has 55 upvotes and 23 answers, and the top-voted answer has more than 100 votes. – DOK Apr 19 '12 at 20:15
  • Yeah, i've seen that question. The problem is that it needs the user gmail account (email and password). I can't ask the user to give me that info... – Aldridge1991 Apr 19 '12 at 20:16
  • if you do want that send emails containing orders, just set an email account on a mail server of yours which you will be using for all the orders. You do not need to ask for the user's password, you will be just using yours. – fedepaol Apr 19 '12 at 20:46
  • Yeah, i thought about that. The main problem is that i can't send them back a confirmation email automatically (outlook offers that possibility). I'd like to answer as soon as the order mail arrives to my computer, do you understand? I have the user email, i could do it manually but it wouldn't be very handy for what we need – Aldridge1991 Apr 19 '12 at 20:50

0 Answers0