smtplib and SSL
Gerhard Häring
gh at ghaering.de
Wed Jun 4 05:25:07 EDT 2003
Mike Prager wrote:
> On Wed, 04 Jun 2003 01:03:56 +0200, Gerhard Häring
> <gh at ghaering.de> wrote:
>
>
>>Michael Prager wrote:
>>
>>>I have looked through Google groups and am not sure if this
>>>question has been answered before (by "Windows Python does not
>>>yet include SSL support.") [...]
>>
>>Install my _socket.pyd binary for Python 2.2.x
>>http://pypgsql.sourceforge.net/misc/python-ssl.html to get SSL support
>>on Windows.
>>
>>-- Gerhard
>
>
> Gerhard, thank you! That works.
>
> Perhaps you or someone else can help me a little further
> along. When I try to login to the server with
>
> serv.login(uname, pwd)
>
> I now get the error
>
> File "D:\python22\lib\smtplib.py", line 542, in login
> raise SMTPException("No suitable authentication method
> found.")
> smtplib.SMTPException: No suitable authentication method
> found.
Please post the output of this script:
#v+
import smtplib
s = smtplib.SMTP("myserver")
s.debuglevel = 5
s.login("myusername", "mypassword")
#v-
> Being a user, not a TCP/IP programmer, I am baffled about what
> that means or what I can do to correct it.
You don't need to know TCP/IP. It sufficient if you know the SMTP
protocol with the AUTH extension ;-)
-- Gerhard
More information about the Python-list
mailing list