Ticket #11849: patch.diff

File patch.diff, 638 bytes (added by aromano, 5 years ago)

simple patch for the aforementioned bug

  • mail.py

     
    112112        self.port = port or settings.EMAIL_PORT
    113113        self.username = username or settings.EMAIL_HOST_USER
    114114        self.password = password or settings.EMAIL_HOST_PASSWORD
    115         self.use_tls = (use_tls is not None) and use_tls or settings.EMAIL_USE_TLS
     115
     116        if use_tls is not None:
     117            self.use_tls = use_tls
     118        else:
     119            self.use_tls = settings.EMAIL_USE_TLS
     120
    116121        self.fail_silently = fail_silently
    117122        self.connection = None
    118123
Back to Top