devXero's blog

a blog about agile, development, and automation

Posts Tagged ‘.Net’

Accessing a POP3 Email Account

Posted by Mike Longin on August 10, 2010

As part of an internal development project I wanted to be able to access a pop3 email account. After a larger amount of searching then you would think necessary I came across . After that it was pretty simple. The only major changes I felt were needed were to change some of the logic on how a connection is closed. The source code has all of the email revert to its initial state when the box is done being accessed. However for my needs I wanted to ensure the emails were deleted. To do so I needed to be a little more familar with POP3 commands. I found this to be a good resource for all PPO3 commands (


Posted in Uncategorized | Tagged: , , , | Leave a Comment »

Mobile Browser Sniffing

Posted by Mike Longin on August 10, 2010

For my internal site, I wanted to give it the ability to display an version specific for mobile browsers. To do this required the ability to sniff our a mobile browser. Initially I was using the provided .Net command for verifying if the accessing browser was a mobile browser.


However while this works great for the iPhone this did not work at all for Android based devices. After a large amount of searching I found the MobileESP open source project ( for determining if a browser is from a mobile device. Initially I used thier entire code base. However I felt that solution was too bulky and I ended up just finding the code for locating an Android based device and using that instead.

Request.UserAgent.ToLower().IndexOf("android") != -1

Even if you do not need their entire code base, the project is a great repository for determining how to identify any mobile based browser

Posted in Uncategorized | Tagged: , , , , , | Leave a Comment »