• Resolved webframe

    (@webframe)


    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

    (@nasanansi)

    Hi @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 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.

    ?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 ??

Viewing 1 replies (of 1 total)
  • The topic ‘Background processing’ is closed to new replies.