Title: Automatically resend error mails
Last modified: July 8, 2023

---

# Automatically resend error mails

 *  [chelminski](https://wordpress.org/support/users/chelminski/)
 * (@chelminski)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/automatically-resend-error-mails/)
 * Hi, I would like to ask you to implement an automatic retry of sending an email
   if an error occurred the first time. Some methods (e.g. Google API) do not allow
   you to send mails quickly, even if they are small amounts (e.g. you cannot send
   more than 10 mails in 10 seconds, otherwise Google will block the connection 
   for a few seconds). My suggestion for a function is this: in case of an error,
   the plugin pauses, waits X seconds and tries to send the same email again. If
   it succeeds, it tries to process another e-mail.
 * The parameters to be adjusted would be such as:
    - Should I resend the e-mail in case of an error? {true/false}
    - After how many seconds to try again? {number}
    - Pause queue on error? {true/false}
    - After how many seconds to resume work? {number}
    - After how many failed attempts to send an email with an error give up? {number}

The topic ‘Automatically resend error mails’ is closed to new replies.

 * ![](https://ps.w.org/mail-queue/assets/icon-128x128.gif?rev=2650489)
 * [Mail Queue](https://wordpress.org/plugins/mail-queue/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mail-queue/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mail-queue/)
 * [Active Topics](https://wordpress.org/support/plugin/mail-queue/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mail-queue/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mail-queue/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [chelminski](https://wordpress.org/support/users/chelminski/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/automatically-resend-error-mails/)
 * Status: not resolved