Re: Why _thread doesnt work on the remote server?

2021-02-26 Thread Kasper Laudrup
On 26/02/2021 19.09, Sergei Sokov wrote: This code works on my local server, but doesnt work on the hosting. What could be the problem? Hard to tell. You're explicitly throwing away any relevant information by using a catch-all exception handler. Do any of your "an error happened" messages

Why _thread doesnt work on the remote server?

2021-02-26 Thread Sergei Sokov
This code works on my local server, but doesnt work on the hosting. What could be the problem? import _thread def email_index(*args): server = smtplib.SMTP('smtp.gmail.com', 587) server.starttls() server.login('k...@gmail.com', 'pas') try: server.sendmail('k...@gmail.com