Re: Django does't send email on the remote server

2021-03-03 Thread Malcolm MacKinnon
This might help: https://dev.to/abderrahmanemustapha/how-to-send-email-with-django-and-gmail-in-production-the-right-way-24ab On Wed, Mar 3, 2021 at 8:57 PM AMRIT SHAHI wrote: > > is that your site backend is fully backend > > On Tue, Feb 23, 2021 at 3:51 PM Sergei Sokov wrote: >> >> I am trying

Re: Django does't send email on the remote server

2021-03-03 Thread AMRIT SHAHI
is that your site backend is fully backend On Tue, Feb 23, 2021 at 3:51 PM Sergei Sokov wrote: > I am trying to send an email when a user fills out a form on my site. > Everything works on my local server, letters are sent and I am got them. > On a remote timeweb.com server with the same setting

Re: Django does't send email on the remote server

2021-02-26 Thread Class Udeh
Django does't send email on the remote server This code is working server = smtplib.SMTP('smtp.gmail.com', 587) server.starttls() server.login('k...@gmail.com', 'pas') try: server.sendmail('k...@gmail.com', 's...@gmail.

Re: Django does't send email on the remote server

2021-02-26 Thread Sergei Sokov
This code is working server = smtplib.SMTP('smtp.gmail.com', 587) server.starttls() server.login('k...@gmail.com', 'pas') try: server.sendmail('k...@gmail.com', 's...@gmail.com', body_mes.encode('utf-8')) print('ok') except: print('An error occurred when trying to

Re: Django does't send email on the remote server

2021-02-25 Thread ule...@gmail.com
i can send email when i use a local server 127.0.0.1:8000 but when i use pythonanywhere.com or eu.pythonanywhere.com i can not send mails Op donderdag 25 februari 2021 om 21:44:53 UTC+1 schreef Mike Dewhirst: > On 26/02/2021 7:26 am, ule...@gmail.com wrote: > > Any solution ? > > You need a

Re: Django does't send email on the remote server

2021-02-25 Thread Mike Dewhirst
On 26/02/2021 7:26 am, ule...@gmail.com wrote: Any solution ? You need a friendly sysadmin from your mail provider. Nowadays with so much spam and botnet activity there are  many email relay checks and hurdles to deal with. Your remote server has to be established with your provider and reco

Re: Django does't send email on the remote server

2021-02-25 Thread ule...@gmail.com
Any solution ? Op dinsdag 23 februari 2021 om 18:42:42 UTC+1 schreef ule...@gmail.com: > I have this same problem when i use smtp = out.telenet.be > on my local server it works fine but when it use pythonanywhere.com i get > OSError: [Errno 101] Network is unreachable > > Op dinsdag 23 februari

Re: Django does't send email on the remote server

2021-02-23 Thread ule...@gmail.com
I have this same problem when i use smtp = out.telenet.be on my local server it works fine but when it use pythonanywhere.com i get OSError: [Errno 101] Network is unreachable Op dinsdag 23 februari 2021 om 11:06:09 UTC+1 schreef soko...@gmail.com: > I am trying to send an email when a user fill

Re: Django does't send email on the remote server

2021-02-23 Thread ramadhan ngallen
Change EMAIL_PORT = 465 EMAIL_USE_TLS=False EMAIL_USE_SSL=True On your sendmail function set sail_silently=False so that we can  see an error on terminal On 23 Feb 2021, 14:15 +0300, Sergei Sokov , wrote: > 'setting.py' > EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend" > EMAIL_HOST_

Re: Django does't send email on the remote server

2021-02-23 Thread Sergei Sokov
'setting.py' EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend" EMAIL_HOST_USER = "em...@gmail.com" EMAIL_HOST = "smtp.gmail.com" EMAIL_PORT = 587 EMAIL_USE_TLS = True EMAIL_HOST_PASSWORD = "Your_Password" I have chtcked spam, I have tried different email services I switched

Re: Django does't send email on the remote server

2021-02-23 Thread Anubhav Gupta
alse please share the program to have a look on On Tue, Feb 23, 2021 at 3:57 PM Anubhav Gupta wrote: > you should be using app password instead of less secure option > > On Tue, Feb 23, 2021 at 3:36 PM Sergei Sokov wrote: > >> I am trying to send an email when a user fills out a form on my site

Re: Django does't send email on the remote server

2021-02-23 Thread Anubhav Gupta
you should be using app password instead of less secure option On Tue, Feb 23, 2021 at 3:36 PM Sergei Sokov wrote: > I am trying to send an email when a user fills out a form on my site. > Everything works on my local server, letters are sent and I am got them. > On a remote timeweb.com server w