Test e-mail works, wp_mail does not
-
Hello!
My wp_mail functions end up with this error: “SMTP Error: Could not connect to SMTP host.”. This is how I got to the error: https://www.bobz.co/debug-wp_mail-function/ This applies both for internal usage of wp_mail function (such as sending password reset link) or my own (such as sending output of my custom contact form).
My SMTP credentials seem to be right though, as test e-mail from the plugin is sent and received without problems. Weirdly enough, everything goes well even if I use Mailgun sandbox domain (so there appears to be no problem with my code).
My SMTP provider is czech shared hosting company. I’m aware of this troubleshooting page – https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting – so I sent info about this to my SMTP provider.
Does that ring any bells? Could you point me to a direction how I can debug this further?
Thank you very much, Petr!
- The topic ‘Test e-mail works, wp_mail does not’ is closed to new replies.