Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

430
Vistas
What does fail_silently do in send_mail() django?

I have read the documentation of send_mail() but the purpose of fail_silently is not clear yet.

about 4 years ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

According to Django docs:

A boolean. If it’s False, send_mail will raise an smtplib.SMTPException.

So basically, if it's true, you'll get no log or error of a failed sent email.

More info here.

about 4 years ago · Santiago Trujillo Denunciar

0

As qouted by @Nifled, fail_silently() will raise an exception from smtplib. I will explain it by quoting an example: Assume your web app sends an email to a user who submits a feedback every time. If fail_silently() is set to False while DEBUG mode is set to False or True you will get a very ugly error page(although useful in the beginner stages) which you might not want to show to your user and hence fail_silently()=True comes to your rescue. Hope now it's clear!!.

about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda