I got it working, my SSL cert wasn't set up the right way
Now im getting SMTP Error: Could not connect to SMTP host.
When I try to send a test email with PHPMailer enabled, it just crashes my site. It gives me a cloudflare host unreachable screen, and no errors are logged.
I know 100% sure that the credentials are correct, since it works on other php systems.
How do I fix this?