Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #109104

Re: [smtplib] how to assure login was succesful?

From dieter <dieter@handshake.de>
Newsgroups comp.lang.python
Subject Re: [smtplib] how to assure login was succesful?
Date 2016-05-25 10:23 +0200
Message-ID <mailman.78.1464164641.20402.python-list@python.org> (permalink)
References <b1d2c666-1d1a-4dce-907d-3f0e1336b5d8@googlegroups.com> <8737p6tuk8.fsf@handshake.de>

Show all headers | View raw


maurice <mauricioliveiraguarda@gmail.com> writes:
> Once my python script reaches the point where I login in my email account with: server.login(username,password) (where server server = smtplib.SMTP('smtp.office365.com:587')), it returns a tuple like this:
>
> (235,
>  '2.7.0 Authentication successful target host [address here]')

Try a wrong login. I would expect you to get some kind of exception.

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[smtplib] how to assure login was succesful? maurice <mauricioliveiraguarda@gmail.com> - 2016-05-24 10:08 -0700
  Re: [smtplib] how to assure login was succesful? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2016-05-24 20:30 -0400
  Re: [smtplib] how to assure login was succesful? dieter <dieter@handshake.de> - 2016-05-25 10:23 +0200

csiph-web