问题
I am trying to develop a small application for sending and receiving emails on the Android plataform. Currently i have been using the Javamail api trying to send an email. However i thought that if i implement my app using javamail how am i going to receive an email and get a notification from my app that i have recieved it? Is this having to do with Service and Provder classes found on Android? I am a complete beginner on android.
Also i tried this piece of code found here :
Android Programming - Send mail
with no luck since application does not work.
回答1:
JavaMail can also be used to fetch mails from a POP3 server. As an example look at this class: PopMailImporter.java, especially the importMails and importMail function.
来源:https://stackoverflow.com/questions/8009351/developing-an-email-client-app-on-android