Quantcast
Channel: WordPress.org Forums » [WP Mail SMTP by WPForms - The Most Popular SMTP and Email Log Plugin] Support
Viewing all articles
Browse latest Browse all 4996

Test e-mail works, wp_mail does not

$
0
0

Replies: 1

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!


Viewing all articles
Browse latest Browse all 4996

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>