Re: smtplib not working as expected

2014-12-27 Thread Juan Christian
Denis it was already resolved, check my message above. ^^ -- https://mail.python.org/mailman/listinfo/python-list

Re: smtplib not working as expected

2014-12-27 Thread Tim Chase
On 2014-12-27 14:28, Denis McMahon wrote: > On Sat, 27 Dec 2014 02:52:39 +, Juan Christian wrote: > > reply: b'550 SMTP is available only with SSL or TLS connection > > enabled.\r\n' > > reply: retcode (550); Msg: b'SMTP is available only with SSL or > > TLS connection enabled.' > > ^^ hav

Re: smtplib not working as expected

2014-12-27 Thread Denis McMahon
On Sat, 27 Dec 2014 02:52:39 +, Juan Christian wrote: > So, I changed the code how you said, but still not working. > Traceback: > > reply: b'550 SMTP is available only with SSL or TLS connection > enabled.\r\n' > reply: retcode (550); Msg: b'SMTP is available only with SSL or TLS > connectio

Re: smtplib not working as expected

2014-12-27 Thread Juan Christian
On Sat Dec 27 2014 at 1:23:12 AM Vincent Vande Vyvre < vincent.vande.vy...@telenet.be> wrote: Try with the TLS: Many thanks, working like a charm, code: server = smtplib.SMTP('smtp.mail.ru') server.starttls() server.ehlo() server.login('SENDER EMAIL GOES HERE', 'PASSWD GOES HERE') server.sendmail

Re: smtplib not working as expected

2014-12-26 Thread Vincent Vande Vyvre
Le 27/12/2014 03:52, Juan Christian a écrit : On Fri Dec 26 2014 at 11:07:30 PM MRAB > wrote: According to the docs, if you let the port parameter default to 0, it'll use port 465. I tested with my ISP. Using port 465, it failed. Using the default, it succeed

Re: smtplib not working as expected

2014-12-26 Thread Juan Christian
On Fri Dec 26 2014 at 11:07:30 PM MRAB wrote: According to the docs, if you let the port parameter default to 0, it'll use port 465. I tested with my ISP. Using port 465, it failed. Using the default, it succeeded. So, I changed the code how you said, but still not working. Code: import smt

Re: smtplib not working as expected

2014-12-26 Thread MRAB
On 2014-12-27 00:39, Juan Christian wrote: I have the following test code: import smtplib fromaddr = 'mksfjnsfji4433j4...@bk.ru ' toaddrs = ['mksfjnsfji4433j4...@bk.ru '] msg = ("From: %s\r\nTo: %s\r\n\r\n" % (fromadd

smtplib not working as expected

2014-12-26 Thread Juan Christian
I have the following test code: import smtplib fromaddr = 'mksfjnsfji4433j4...@bk.ru' toaddrs = ['mksfjnsfji4433j4...@bk.ru'] msg = ("From: %s\r\nTo: %s\r\n\r\n" % (fromaddr, ", ".join(toaddrs))) msg = msg + 'test' print("Message length is " + repr(len(msg))) server = smtplib.SMTP('sm