Title: Background processing
Last modified: November 13, 2023

---

# Background processing

 *  Resolved [webframe](https://wordpress.org/support/users/webframe/)
 * (@webframe)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/background-processing-3/)
 * 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?

Viewing 1 replies (of 1 total)

 *  [Nukak Asanansi](https://wordpress.org/support/users/nasanansi/)
 * (@nasanansi)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/background-processing-3/#post-17201723)
 * Hi [@webframe](https://wordpress.org/support/users/webframe/),
 * Thanks for reaching out!
 * Currently, we don’t have this feature available in WP Mail SMTP to enable background
   email processing. 
   In case it helps to know, we are currently working on the 
   feature though. I don’t have an ETA from the team on this yet, but please keep
   an eye on our [change logs](https://wpmailsmtp.com/docs/how-to-view-recent-changes-to-the-wp-mail-smtp-plugin-changelog/)
   for upcoming releases that may include this feature.In the meantime, if you are
   using WPForms, there is an **Optimize Email Sending** feature that enables you
   to queue emails from the form in a similar manner. You can learn more about the
   Optimize Email Sending feature of WPForms [here](https://wpforms.com/docs/a-complete-guide-to-wpforms-settings/#email).​
   I apologize that we can’t provide an exact solution to the issue right now, but
   I hope the information provided above could be of some help.
 * Thanks 🙂
    -  This reply was modified 2 years, 6 months ago by [Nukak Asanansi](https://wordpress.org/support/users/nasanansi/).

Viewing 1 replies (of 1 total)

The topic ‘Background processing’ is closed to new replies.

 * ![](https://ps.w.org/wp-mail-smtp/assets/icon-256x256.png?rev=1755440)
 * [WP Mail SMTP by WPForms - The Most Popular SMTP and Email Log Plugin](https://wordpress.org/plugins/wp-mail-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-mail-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-mail-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-mail-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-mail-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-mail-smtp/reviews/)

## Tags

 * [delay](https://wordpress.org/support/topic-tag/delay/)
 * [mail](https://wordpress.org/support/topic-tag/mail/)

 * 1 reply
 * 2 participants
 * Last reply from: [Nukak Asanansi](https://wordpress.org/support/users/nasanansi/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/background-processing-3/#post-17201723)
 * Status: resolved