Search code examples
djangossldjango-email

django.core.mail send_email with secure connection


Im trying to use django send_email function but it fails on authentication. In fact, django returns me message along the lines - ssl not found in this django installation.

I do have ssl-1.15 on my pythonpath and i could import it without errors. So the problem is probably with the certificates, right?

Now is there some kind of tutorial or example for generating those certificates, since the pakcage contains none. Could the problem be elsewhere?

Alan


Solution

  • Have you tried importing ssl-1.15 from within Django? In other words, start ./manage.py shell and try to import ssl-1.15.

    Did you find this example? And this one may even be better!