• Resolved Stephen

    (@dropstr)


    Does the wp_mail or the phpmailer class have an email process queue for sending multiple emails?

    My current understanding is it does not, it just accepts all information entered and returns a boolean if it passed to the phpmailer class.

    There is also no grace period, so sending a bunch of emails might also cause 3rd parties to bounce the email if it exceeds an email/hour rate.

    Last, sending 20 emails at once may cause PHP to time out depending on the hosts configs/limits (excluding any additional SMTP plugins/settings, provider sending limits, and/or MX/dmarc validation issues).

    Does this sound correct?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Topher

    (@topher1kenobe)

    Yes, this sounds right. If you have more advanced email needs like that it’s very common to use an SMTP plugin with a quality sender like Sendgrid or Mailgun.

    Thread Starter Stephen

    (@dropstr)

    Topher, thanks! I wasn’t too sure if something was built-in to the wp_mail function that I missed in the documentation/repository.

    I have an email queue class under development to be added to a plugin but I didn’t want to reinvent the wheel so to speak. We use AWS for our SaaS, but this pertained to a free/in-house option on the plugin settings. Again, thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘wp_mail() and multiple emails’ is closed to new replies.