Hi!
I want to connect to gmail but...
It requires SSL so I worte:
>>import poplib server = poplib.POP3_SSL ('pop.gmail.com ',995)
Traceback (most recent call last):
File "<interacti ve input>", line 1, in ?
File "C:\Python24\li b\poplib.py", line 359, in __init__
self.sslobj = socket.ssl(self .sock, self.keyfile, self.certfile)
AttributeError: 'module' object has no attribute 'ssl'
>>>
what's with that?!
I found an old post to this group, and it connected the same way, only
it worked.
(I use PythonWin 2.4.3 on WinXP)
tia! 4 2185
"SuperHik" <ju************ @gmail.comwrote in message
news:e8******** **@ss408.t-com.hr...
Hi!
I want to connect to gmail but...
It requires SSL so I worte:
>>import poplib
>>server = poplib.POP3_SSL ('pop.gmail.com ',995)
Traceback (most recent call last):
File "<interacti ve input>", line 1, in ?
File "C:\Python24\li b\poplib.py", line 359, in __init__
self.sslobj = socket.ssl(self .sock, self.keyfile, self.certfile)
AttributeError: 'module' object has no attribute 'ssl'
>>>
what's with that?!
I found an old post to this group, and it connected the same way, only
it worked.
(I use PythonWin 2.4.3 on WinXP)
tia!
See if you have a socket.py file in your PYTHONPATH or local directory.
-- Paul
Paul McGuire wrote:
"SuperHik" <ju************ @gmail.comwrote in message
news:e8******** **@ss408.t-com.hr...
>Hi!
I want to connect to gmail but... It requires SSL so I worte:
> >>import poplib server = poplib.POP3_SSL ('pop.gmail.com ',995)
Traceback (most recent call last): File "<interacti ve input>", line 1, in ? File "C:\Python24\li b\poplib.py", line 359, in __init__ self.sslobj = socket.ssl(self .sock, self.keyfile, self.certfile) AttributeError : 'module' object has no attribute 'ssl'
> >>>
what's with that?! I found an old post to this group, and it connected the same way, only it worked. (I use PythonWin 2.4.3 on WinXP)
tia!
See if you have a socket.py file in your PYTHONPATH or local directory.
-- Paul
I did ofc, but I noticed something strange...
*my* socket module really doesn't have SSL object,
even tho it's listed in the documentation.. .
(not the online docs, but docs that came with my Python version)
ffs how can that be!
SuperHik:
I did ofc, but I noticed something strange...
*my* socket module really doesn't have SSL object,
even tho it's listed in the documentation.. .
(not the online docs, but docs that came with my Python version)
ffs how can that be!
You are probably using ActiveState's distribution which doesn't
include SSL due to encryption regulations. The python.org distribution
does include SSL and you may be able to copy _ssl.pyd into the
ActiveState installation.
Neil
Neil Hodgson wrote:
SuperHik:
>I did ofc, but I noticed something strange... *my* socket module really doesn't have SSL object, even tho it's listed in the documentation.. . (not the online docs, but docs that came with my Python version) ffs how can that be!
You are probably using ActiveState's distribution which doesn't
include SSL due to encryption regulations. The python.org distribution
does include SSL and you may be able to copy _ssl.pyd into the
ActiveState installation.
Neil
thank you!
grrr@regulation s This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Rybread |
last post by:
Real quick, I have account X and I want a python script that goes in
and looks for emails sent from Y and then to save them. i'm trying to
go off the swen killer I have listed below (which i took from someone
on this NG):
import poplib
import time
print 'Start at', time.asctime()
|
by: brettk |
last post by:
Hello All,
Here's what I'm trying to do:
I need to connect to a pop3 server, download all messages, and copy all
of the attachments into a specific directory. The actual email message
is unimportant. Now, I've found plenty of examples that strip the
attachments from an email message, but most (if not all) of them take a
file parameter....
|
by: Steve Greenland |
last post by:
For the poplib.POP3 object, docs say:
list()
Request message list, result is in the form (response, ). If which is set, it is the message to list.
But (I've folded the long line):
Python 2.3.5 (#2, May 4 2005, 08:51:39)
on linux2
|
by: Frank Churchill |
last post by:
Has anyone used poplib and popfile together?
I've tried everything I can think of to specify SRVR in poplib:
"127.0.0.1:8081"
"127.0.0.1,port=8081"
"localhost:8081"
"localhost,port=8081"
and probably a few other things, but poplib can't see
|
by: LJ |
last post by:
Hello,
I'm trying to monitor my gmail account to know when I have obtained a
new email. It seems that once I have logged in, I should be able to
call the stat() function repeatedly to see how many messages are in my
inbox. The problem is that this number does not seem to update until I
have logged out, and logged back in. In other words,...
| |
by: EuGeNe Van den Bulke |
last post by:
Hi there,
I am trying to use the poplib library to get emails using the retr
method. The small program bellow works but the message aren't flagged as
read which puzzles me. I believe the pop server is qmail 1.0.6 /
vpopmail 5.2.1 and I am running the following script on Windows using
Pyhton 2.5.
import poplib
import email
|
by: erikcw |
last post by:
Hi,
I keep getting this error from poplib:
(error_proto(-ERR EOF) line 121 poplib.py
Does this mean the connection has timed out? What can I do to deal
with it?
Thanks!
Erik
|
by: Jean-Claude Neveu |
last post by:
Hello,
I am writing a Python program to check email using POP3. I've tried
the sample code from python.org, and it works great. In other words,
the code below successfully prints out my emails.
import getpass, poplib, email
M = poplib.POP3('mail.blah.com')
M.user('username')
M.pass_('password')
|
by: SteveC |
last post by:
Hello,
I am trying to use POP3_SSL class of the poplib module to read email
from my gmail account. I can connect just fine using the example here
http://www.python.org/doc/lib/pop3-example.html
import getpass, poplib
M = poplib.POP3('localhost')
M.user(getpass.getuser())
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |