Problem when sending email: SMTP AUTH extension not supported by server.

52 views
Skip to first unread message

Alipio Luiz de Souza Silva

unread,
Aug 17, 2021, 12:02:07 PM8/17/21
to helios...@googlegroups.com
Hi there.
I'm trying to configure helios to send email but it isn't working.

When I try to send email from the system I got the message:
SMTPException: SMTP AUTH extension not supported by server.

Below is my configurations in settings.py.

# email server
EMAIL_HOST = get_from_env('EMAIL_HOST', 'smtp.gmail.com')
EMAIL_PORT = int(get_from_env('EMAIL_PORT', "587"))
EMAIL_HOST_USER = get_from_env('EMAIL_HOST_USER', 'em...@domain.mt.gov.br')
EMAIL_HOST_PASSWORD = get_from_env('EMAIL_HOST_PASSWORD', 'XXXXXXXX)
EMAIL_USE_TLS = True

What is happening?

Thanks in advance.

 

 


Alípio Luiz de Souza Silva

Coordenador de Tecnologia da Informação

Secretaria de Estado de Cultura Esporte e Lazer

+55 (65) 3613-0239 / (65) 98424-1233

Lucas Henrique

unread,
Aug 17, 2021, 12:53:05 PM8/17/21
to Helios Voting
Segue exemplo de configuração (gmail). Sugiro criar uma conta do gmail para testes para garantir que as configurações do helios estão corretas, funcionando com o gmail você pode alterar para as configurações de smtp do seu servidor. mt.gov.br 

EMAIL_HOST = get_from_env('EMAIL_HOST', 'smtp.gmail.com')
EMAIL_PORT = int(get_from_env('EMAIL_PORT', "587"))
EMAIL_HOST_USER = get_from_env('EMAIL_HOST_USER', 'xx...@gmail.com')
EMAIL_HOST_PASSWORD = get_from_env('EMAIL_HOST_PASSWORD', 'xxxx')
EMAIL_USE_TLS = (get_from_env('EMAIL_USE_TLS', '0') == '0')


Para funcionar o gmail tive que habilitar o app menos seguro conforme instrução abaixo 




Att,

Alipio Luiz de Souza Silva

unread,
Aug 18, 2021, 8:46:12 AM8/18/21
to helios...@googlegroups.com
Everthing is working now after restarting celery.

Thanks.


Em ter., 17 de ago. de 2021 às 12:53, Lucas Henrique <lucas...@gmail.com> escreveu:
Segue exemplo de configuração (gmail). Sugiro criar uma conta do gmail para testes para garantir que as configurações do helios estão corretas, funcionando com o gmail você pode alterar para as configurações de smtp do seu servidor. mt.gov.br 

EMAIL_HOST = get_from_env('EMAIL_HOST', 'smtp.gmail.com')
EMAIL_PORT = int(get_from_env('EMAIL_PORT', "587"))
EMAIL_HOST_USER = get_from_env('EMAIL_HOST_USER', 'xx...@gmail.com')
EMAIL_HOST_PASSWORD = get_from_env('EMAIL_HOST_PASSWORD', 'xxxx')
EMAIL_USE_TLS = (get_from_env('EMAIL_USE_TLS', '0') == '0')


Para funcionar o gmail tive que habilitar o app menos seguro conforme instrução abaixo 




Att,
Em terça-feira, 17 de agosto de 2021 às 13:02:07 UTC-3, alipi...@secel.mt.gov.br escreveu:
Hi there.
I'm trying to configure helios to send email but it isn't working.

When I try to send email from the system I got the message:
SMTPException: SMTP AUTH extension not supported by server.

Below is my configurations in settings.py.

# email server
EMAIL_HOST = get_from_env('EMAIL_HOST', 'smtp.gmail.com')
EMAIL_PORT = int(get_from_env('EMAIL_PORT', "587"))
EMAIL_HOST_USER = get_from_env('EMAIL_HOST_USER', 'em...@domain.mt.gov.br')
EMAIL_HOST_PASSWORD = get_from_env('EMAIL_HOST_PASSWORD', 'XXXXXXXX)
EMAIL_USE_TLS = True

What is happening?

Thanks in advance.

--
--
Helios Voting Google Group
To post: helios...@googlegroups.com
To unsubscribe: helios-votin...@googlegroups.com
More: http://groups.google.com/group/helios-voting?hl=en

---
You received this message because you are subscribed to the Google Groups "Helios Voting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to helios-votin...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/helios-voting/66bc61df-bf97-4ff2-a9c6-8e5de6035850n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages