Given the user credentials (username+password or OAuth tokens), what are the effective ways to programmatically send and receive mail (and notifications) on behalf of that user?
I searched around and saw:
- using IMAP programmatically ( Programmaticly use Gmail to receive e-mail? )
- OAuth
I am intimidated by the first method and I am unsure of the capabilities the OAuth API has.
Is there some (fourth party!) service that makes it easier by offering an API?
Gmail’s IMAP supports OAuth and the JavaMail API — see here