• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 788
  • Last Modified:

Interact with Webmail

Is it possible to interact with Webmail?

If so is is possible to detect unread emails and if so tell you how many unread emails?
0
ellandrd
Asked:
ellandrd
  • 4
  • 2
1 Solution
 
pallospCommented:
If you can't access the mail server by POP3 or IMAP protocol, it is possible to read messages but very complicated.

You should send HTTP requests that are specific to the mail site. First you should send a request, that posts the completed login form. Then you may get a session id or a cookie depending on the authentication type. After that a request should be sent to the url representing the inbox using the previous authentication id. Finally the html page should be parsed to get the number of emails. Paging may make the process even more complicated. If the design of the webmail page changes, your code will no longer work.

So don't start programming it unless you desperately need to fetch emails outside.
0
 
ellandrdAuthor Commented:
any code examples
0
 
ellandrdAuthor Commented:
>>previous authentication id

is this the username and password that i send in my first request?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
pallospCommented:
No, it is the session id or the cookie that identifies th current session.
Do you insist on php? Most free web space providers don't allow to read from an externel url.
0
 
ellandrdAuthor Commented:
no it can be any scripting language
0
 
ellandrdAuthor Commented:
my webmail or the webmail client im planning on using isnt a free one btw... we pay for it
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now