Is there anyway to make gmail to send some sort of notification when a new email comes? even better if gmail can send the mail content to a certain web url, so no need to poll the gmail. if gmail doesn't have this feature, any email provider that can? thanks
Yes, I know SMTP is not HTTP, but is there a way to trigger HTTP call from SMTP? so basically what I want is for my app to be aware (for processing) each time a new mail arives.
I'm not familiar with the Gmail API, so can't really comment on that. Obviously, using JavaMail would make it independent of any particular mail provider, so I'd think that would be preferable, especially if it can do everything you need done.
I didn't know there was a Gmail API, but after a bit of web searching I see it's a new API which was just released a few months ago.
Anyway, reading through the one-page summary it looks like you'd still have to poll every N seconds to find out about new mail -- I don't see anything whereby you can install a notifier on Google's servers. (Which I think would be an unlikely thing for a mail server to offer anyway.)
The listeners let you structure mail handling code better - there could be many pieces of code that need to know about these events; using listeners, they can be notified automatically, instead of you having to write dispatch code to do so.
You firghten me terribly. I would like to go home now. Here, take this tiny ad: