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 5013

Email Test bug when only constants defined

$
0
0

Replies: 0

Hi,

I’ve constants defined only. No wp_options keys.

Whenever I go to Test Email I get this:
“Send Email You cannot send an email. Mailer is not properly configured. Please check your settings.”

Looking at the code I see the bug here:
wp-mail-smtp/src/Providers/SMTP/Mailer.php

		// Host and Port are the only really required options.
		if (
			! empty( $options['host'] ) &&
			! empty( $options['port'] )
		) {
			return true;
		}

You’re only checking the populated options and the populated options read from DB only.

Cheers


Viewing all articles
Browse latest Browse all 5013

Trending Articles



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