• Resolved rbstern

    (@rbstern)


    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 4 replies - 1 through 4 (of 4 total)
  • Plugin Support David

    (@dpinson)

    Hi there @rbstern,

    It sounds like you may need to adjust when your filter fires. I’m going to check in with our team to see if we can give you a better idea of what you may need to adjust, and I’ll let you know when I have more details.

    Thanks!

    Thread Starter rbstern

    (@rbstern)

    @dpinson, thank you. Truly stuck at the moment and any guidance appreciated.

    Thread Starter rbstern

    (@rbstern)

    @dpinson Sorry to bother you, but any update on this?

    Plugin Support David

    (@dpinson)

    Hi @rbstern,

    Sorry about the delay on this. Can you provide additional information on which hook/filter you’re using and the priority you have set?

    Also, you mentioned, “Emails are still being sent via the SMTP account.”

    Does this mean that the emails are sending through our plugin, through the configured mailer, or from a different SMTP config? If you can let us know, that should help.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Disabling WP SMTP Mail in headless batch script’ is closed to new replies.