Hey I manage to sort it out guys if it is issue with the 500 follow this steps :
Make sure to go to cpanel or plesk panel whatever your using and click on Apache and nginx settings for your domain.com you are using and insert this code click apply .
insert it in your Additional directives for HTTP and HTTPS
hope this will help both of you
make sure to clear your cache in the prestashop backend .
Please if it help can someone help me with their SMTP with ssl lol as I still can't get port 456 or 587 to work , only port 24 . Thanks