When trying to use a Python script I get this error:
socket.error: [Errno 10013] An attempt was made to access a socket in a way forbidden by its access permissions
I put the post on Stackoverflow and I have been guided to come here and follow up with why I get the error.
As the post on stackoverflow suggests, the issue is not with Python, but my computer. I can even telnet to smtp.gmail.com
Can anyone provide any suggestions?
The problem was McAfee Antivirus. It was blocking the socket connection.
From McAfee Access Protection Log
23/08/2013 10:23:54 a.m. Blocked by port blocking rule C:\Program Files (x86)\Python26\python.exe Anti-virus Standard Protection:Prevent mass mailing worms from sending mail 220.127.116.11:25
I disabled McAfee completely and it worked fine after that.