Question: ```
ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:852)

```

This is what I see in the error log whenever I run my Django webpage. I'm hosting it with Apache. On the page I see a 500: Internal Server Error.

My Email config is as follows:

```
#Email settings
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'outlook.office365.com'
EMAIL_USE_SSL = True
EMAIL_PORT = 587
EMAIL_HOST_USER = '****@**************.com'
EMAIL_HOST_PASSWORD = '********'

```

and my send\_mail code is as follows:

```
send_mail(
    'Subject here',
    'Here is the message.',
    '***************@**************.com',
    ['****@**************.com'],
    fail_silently=False,
    )

```

Answer: 
You are missing the `libtool` library. This command should solve your problem.

```
sudo apt-get update
sudo apt-get install libtool

```

[Reference link](https://github.com/ffi/ffi/issues/606#issuecomment-363420210)

[This might help you as well](https://stackoverflow.com/questions/27022373/python3-importerror-no-module-named-ctypes-when-using-value-from-module-mul)
You need to install the `autoconf` package:

```
sudo apt-get install autoconf

```