I’m getting the same error on my site. It doesn’t send activation emails. Using the code above worked, but now it’s sending a basic vanilla email with <wordpress@domain.com> as the subject and went to spam. It’s also not sending password reset emails at all.