Background processing
-
Hello everyone, I’ve been exploring the possibility of sending emails in the background, especially since wp-mail-smtp functions with the action scheduler. When using plugins or forms reliant on an SMTP connection for email sending, I’ve noticed that the form/plugin/website becomes unresponsive until the email is sent, which can take up to 10 seconds. I’m aware that WooCommerce has a feature addressing this issue, where you include a code snippet on your site to delay the email processing by 10 seconds and allowing it to run in the background without interrupting the user’s experience on the site:
add_filter( 'woocommerce_defer_transactional_emails', '__return_true' );
Is there a similar capability or workaround for wp-mail-smtp to enable background email sending without disrupting user interaction on the site?
- The topic ‘Background processing’ is closed to new replies.