Send email programmatically using user account - G1 Android Development

I want to be able to send an email out of my app, based on the user pressing a button on my app's Activity. The email needs to be sent automatically by the application upon button press, i.e. I dont want to show another email form to the user. And the email should be sent ***using the user's default email account on the phone*** not an email account that I hardcode into my app. And I dont want to have the user key in their email credentials into my app's configuration, I just want to be able to call some android api and say "send this email with this subject and body to this email address, using the default account that the user has set up on the phone".
Is this possible? If so, how?
thanks
Jay

Haven't tried it myself but using the SEND_TO intent might be a good place to start experimenting. Documentation is a bit lean on usage though.
http://code.google.com/android/reference/android/content/Intent.html#ACTION_SENDTO

Related

Three questions about Froyo

Has Froyo fixed the issue of "Family" and "Friends" contact groups getting deleted on web UI?
I don't like the in call wallpaper (green robot) on Android that appears when I am talking to someone not in my contacts list. Is there any way this can be changed?
Finally, is there a way to make Gmail app allow choosing from more than one email addresses when sending an email? I have configured three "Send From" addresses under my Google Apps email account but Gmail app shows only one (default).
Thanks much.
What do you want to do actually this was a different kind of querry......

[Q] email app with time limit capabilities

I have been looking for an email app that allows me to specify not only the number of messages to retrieve, but a period of time as well. I keep my messages on my web-based server, and don't wish to retrieve them all. I thought that a previous version of K-9 had this feature, but it doesn't seem to be there anymore. Perhaps I imagined it, or it went away with an update?
The stock email app lets you choose ho far back to sync

Email related problem

Whenever I reply an email from my phone. Instead of showing the correct sender's email in a quote, It shows a bunch of code. These code display both on the the phone (sent items) and on Gmail web page.
My question are what is causing the problem and how to solve it?
Thank you very much
Enclosed some desmonstration.
Whoa... I've enver seen that before, sorry.
A few questions that might be relevant:
What language is the phone configured to use?
Is the email being sent directly to your Gmail account, or are you forwarding it from another server (and if so, which)?
Did you configure the Gmail account using the Google account template on the phone, or did you set it up as just an IMAP or POP3 email server?
What OS version is on your phone? (There has been at elast one update regarding original message body handling.)
The phone doesn't usually modify the original message at all (something some people have complained about, actually) so this is really weird. On my Gmail account, I've never seen anything like that.
Thanks for replying
The phone is an HTC Radar with HD2O's Dynamics7 1.21 - build is 8779
Language is en-UK
I'm pretty sure it's not about the ROM because I've encountered this problem on stock Mango ROM.
Mail arrives as usual and I reply by pressing Reply button.
It's a mailbox configured by adding Google Account, not manually configured.
I think the problem is on text encoding but don't know how to solve it yet

Cannot fix wrong email and resend with gmail app on CM10.1 nightly

So had a very interesting situation... Needed to send an email to [email protected] but was provided the email address as [email protected] (where xx is the 2 letter country code). Naturally, after hitting send, got a bounce back for undeliverable address. Then was told by the recipient that the .xx at the end of the address should not be there.
So I try to recompose but everytime, the gmail app matches to the now remembered "wrong" address and replaces the recipient with this address which naturally fails. For the life of me, I could not figure out how to edit this address before sending since it would rematch back to the broken address after the edit. So it became impossible to now send to this recipient using their correct email address. Well, not impossible but the workaround was fugly.
I am running the latest 10.1 nightly. The fundamental problem seems to be that the contacts app is one created by CM(??) and it lacks the ability to view the "other/not assigned" group which is where this one off recipient address should have been listed so I could delete/edit it.
Of course, it would also have helped if the gmail app tried to be less "intelligent" and stop matching if after the first match, you edit the address or provide a way to edit without matching to previous recipients.
Alas, was quite a frustrating experience for such a simple problem...
FWIW, was talking to someone running stock and their contacts app (ie. the one from Google) had the ability to view the "other/not assigned" group and so it was possible to delete the wrong recipient.
Try logging into the desktop site. Should be an option on there to delete recent email addresses that are not part of your contacts.
Sent from my SAMSUNG-SGH-I727 using xda app-developers app
Yeah. That's a convoluted workaround. The other option was to forward to one of my yahoo account and forward again from there.
Was hoping there was something I had overlooked but seems like you hose an email address, there is no easy way to correct that and resend in the gmail app if you are on a phone.

[Q] Email app that hides in for sent emails

So basically long story short. Work issues. Have a fake email, and I want to send an email but don't want there to be any possibility of them knowing my location.
I know I can use vpn, but is there an email app that does this automatically.. or maybe some way to associate an email app with a vpn so it turns on and of when I use a particular email app?
Hope this makes sense.

Categories

Resources