views:

35

answers:

1

I want to send mail from user gmail account using OAuth to all user contacts.

It's easy to get all contacts of user with google API, but i cant send email to these contacts from user gmail account without request his password.

+1  A: 

Yes.

The protocol allowing for an application to access IMAP and SMTP using OAuth is based on the Simple Authentication and Security Layer (SASL) and the native IMAP AUTHENTICATE and SMTP AUTH commands.

Since you can use SMTP via OAuth, you can send mail.

http://code.google.com/apis/gmail/oauth/

David Dorward
i'v seen this link, but cant find params for sending email for request (https://mail.google.com/mail/b/<email address>/smtp/)
Alexey
You send the mail with SMTP, not by stuffing it in an HTTP URI. There is an example one click away from the page I linked to: http://code.google.com/apis/gmail/oauth/protocol.html#smtp
David Dorward