Saturday, January 5, 2013

Re: [android-developers] Is it possible to obtain credentials to send emails via gmail on behalf of a user?

I found some info on that, but from what I have read, it is deprecated.. still available but no longer supported. I don't want to release an app on a deprecated way of doing so. If you have a link to a valid way of doing this that is still supported, I'd appreciate that, but thus far it appears google does not allow the auth token to be used to send emails on behalf of the user's device.


On Sat, Jan 5, 2013 at 10:11 PM, Nikolay Elenkov <nikolay.elenkov@gmail.com> wrote:


On Jan 6, 2013 12:43 PM, "Kevin Duffey" <andjarnic@gmail.com> wrote:
>
> Hi all,
>
> I've been doing quite a bit of googling on this topic and so far despite several examples that seem to fit the bill, nothing quite takes me to an understanding of whether or not I can obtain a device owner's permission to send email out on their behalf. I am testing examples of AccountManager#getAuthToken, but I am not sure if it's possible, even with a pop-up dialog asking the user (in my app) for their permission to do so.. whether or not I can obtain a token that can then be used with gmail api's to send out email with.

Yes. You can obtain an OAuth token which lets you authenticate to gmail's SMTP sever and send email with the user's account. Check Google's documentation for the exact protocol.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate