My data provider allows me to access mails on my phone, but not internet.
I am thinking of writing a utility to fetch a webpage through e-mail, so that I can get view webpages on my phone while I’m travelling. The idea is to have a service running on my system (running outlook and connected to exchange server)which waits for a ‘query mail’ which has the web address as subject. This service should fetch the webpage and reply with the html content.
Please suggest ways as to how I can implement this efficiently. Is there any utility available which does the same?
It’s rather simple to do using system CDO dll. I already has a working prototype, just drop a mail to site2email@gmail.com and you will receive an answer with embedded webpage (in case of url was provided in subject) or attached web archive (mht file with all resources included) in case of url sent in the mail’s body.
Here is a quick and dirty code snippet you can play with:
NetworkUtils.UrlExists is a small method that send HEAD and then if it fail GET request to determine type and encoding of the content.