Receive emails via broadcast receiver

2019-03-05 13:46发布

问题:

I am creating an app that has only a single hard coded email address that will receive and respond to questions with the response. Only the body of the email would be necessary. It is being sent back to the app in plain text to be read, bypassing the email client picker.

My question is this: Is this even possible to do? I've searched high and low for the solution to this about 3 months now and even Google doesn't know the answer to this one.

回答1:

Is it possible to receive the contents of an email message

You are certainly welcome to write your own POP3 or IMAP4 client, as you could for just about any operating system. You are also certainly welcome to see if there are any fringe email clients for Android that offer an on-device API that offers access to email messages.

Otherwise, no.

When it comes to receiving an email, it doesn't seem like anyone knows anything about how to do that.

That is because there is nothing much Android-specific about email. Email is not part of the operating system. Email is something provided by apps.