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 5161

Disabling WP SMTP Mail in headless batch script

$
0
0

Replies: 0

I’m migrating a site from a 3rd party e-commerce store to Woocommerce. As part of that process, I have to import/create order history from the previous platform. My order import script loads WordPress via wp-load.php and creates Woocommerce orders programatically.

Before we adopted WP SMTP Mail, I was able to filter wp_mail and redirect these historical order emails to a catch-all account by changing the “to” recipient email.

Once we started using WP SMTP Mail, that no longer worked. I’ve researched the WP SMTP Mail documentation and tried a number of approraches, including setting WPMS_ON and WPMS_DO_NOT_SEND constants to true in wp-config.php. Unfortunately, it has no effect on my headless script. Emails are still being sent via the SMTP account.

Any insights appreciated.


Viewing all articles
Browse latest Browse all 5161

Trending Articles



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