Hello @kamranahmd,
Glad you reached out!
Solid Security sends 2FA codes by using the WordPress built-in mail system (wp_mail), which goes through PHPMailer. The fatal error you’re seeing is coming from WordPress core, not the plugin itself.
It’s likely that your host has disabled PHP’s mail(), so you’ll want to reach out to your hosting provider to have this enabled or configure SMTP (e.g., with Solid Mail) so PHPMailer uses that instead of mail().
Another possible cause would be a corrupted core file. Check /wp-includes/PHPMailer/PHPMailer.php. If it looks altered, reinstall your current WordPress version to restore a clean copy.
If needed, you can follow the recommendation here to temporarily disable 2FA to get back into the site: Can I disable two-factor authentication (2FA) on my site?
Let me know if this helps.
Hi there,
Just checking back in to make sure everything’s working for you now. Since we haven’t heard back, I’ll assume things are resolved and close this thread.
If you run into any more issues, please feel free to open a new thread and we’ll be glad to help.