I think I've found the solution. I did a Google search on part of the error message and the problem appears to be connected to my AVG Free anti-virus. After a bit of in depth searching I found that the email scanning settings require the choice of Dial-Up or LAN. changing to LAN appears to have solved the problem.
Thanks to anyone who was trying to come up with an answer.