Re-send Campaigns to those that Failed - Free Script

Discussion in 'Extensions' started by sendmedialtd, Oct 25, 2017.

  1. sendmedialtd

    sendmedialtd Active Member

    Joined:
    May 11, 2016
    Messages:
    230
    Likes Received:
    52
    S.E:
    Expired
    L.T:
    Regular
    L.C:
    3
    Hi Guys,

    Since version (1.4.4) any emails that fail to be sent will automatically get re-sent a maximum of 3 times. In my case i have noticed that on a small number of campaigns that some emails are still failing and are given the status of GIVEUP which means MailWizz has given up trying to resend the email again for one reason or another.

    If your using an older version and dont want to update due to custom addons which will fail to work if you update then this script will also work for you. Just double check the SQL queries first before running.

    This script allows you to do the following:

    Re-send a campaign to those with GIVEUP status
    Change Delivery Server when re-sending.

    Download: https://drive.google.com/open?id=0BwdlF9myUVWqeDVxVEJfRmJtMEU

    There is no login to use this script so please rename the script to somthing no one will find or remove the script after use. DO NOT use this script if you are using the Queue Table function to send your emails otherwise it will send the campaign out ALL the subscribers again. Even though this script has been tested you use this script at your own risk.

    Make sure you change the first line on the script and place your MySQL Database login details.

    Support: If you need any help with this script please reply to this thread and ill help you out.
     
    Vpul Shah, frm.mwz and twisted1919 like this.
  2. frm.mwz

    frm.mwz Well-Known Member

    Joined:
    Mar 8, 2016
    Messages:
    3,629
    Likes Received:
    667
    S.E:
    2019-05-17 04:02:46
    L.T:
    Regular
    L.C:
    7
    So kind of you, @sendmedialtd !
    Maybe @AHK and you (and @twisted1919) can put all three options for this resend feature together for the better :)
     
  3. AHK

    AHK Active Member

    Joined:
    May 8, 2016
    Messages:
    238
    Likes Received:
    29
    S.E:
    Expired
    L.T:
    Regular
    L.C:
    1
    @sendmedialtd, I already have batter version of this using plugin so no one need to put any database login details etc.
    also according to @twisted1919, in new version no need for this script as MW is doing this for you.

    Thanks for your help :)
     
  4. frm.mwz

    frm.mwz Well-Known Member

    Joined:
    Mar 8, 2016
    Messages:
    3,629
    Likes Received:
    667
    S.E:
    2019-05-17 04:02:46
    L.T:
    Regular
    L.C:
    7
    Combining all three would give these additional features:
    # set number of retries in backend (instead of yes/no, with 0=no)
    # consider time between retries: linear/quadratic (not essential, but cool)
    # choose DS for retries
    ;)
     
    Last edited: Oct 26, 2017
  5. sendmedialtd

    sendmedialtd Active Member

    Joined:
    May 11, 2016
    Messages:
    230
    Likes Received:
    52
    S.E:
    Expired
    L.T:
    Regular
    L.C:
    3
    Yeah i could of done that myself (not sure why i didnt to be honest) and just include/require the config file which holds the database details for MailWizz.

    Correct about MW already doing this but as i explained it only re-tries 3 times and you can still have some emails with the GIVEUP status even after those 3 attemps. Also for those using the old versions that dont want to update to new versions then they can use this script to re-send the campaigns.
     
  6. sendmedialtd

    sendmedialtd Active Member

    Joined:
    May 11, 2016
    Messages:
    230
    Likes Received:
    52
    S.E:
    Expired
    L.T:
    Regular
    L.C:
    3
    If you want to set the number of retries MailWizz make instead of the default 3 you can do the following:

    Add a param in your configuration apps/common/config/main-custom.php :

    PHP:
    'campaign.delivery.giveup.retries' => 10,
    That will make mailwizz try 10 times instead of 3 times. You can thank @twisted1919 for that ;)
     
    twisted1919 likes this.
  7. frm.mwz

    frm.mwz Well-Known Member

    Joined:
    Mar 8, 2016
    Messages:
    3,629
    Likes Received:
    667
    S.E:
    2019-05-17 04:02:46
    L.T:
    Regular
    L.C:
    7
    Yes, I know I can do that in the code...what I was proposing, was for everyone to be be able to easily (without going into code) change that setting, of course I like it as it is already (I love MailWizz)!
    :)
     
  8. Earl John Bulasa

    Earl John Bulasa New Member

    Joined:
    Nov 13, 2018
    Messages:
    3
    Likes Received:
    0
    S.E:
    2019-05-10 19:17:56
    L.T:
    Regular
    L.C:
    1
    Is there a way that I can resend the email without going into the PHP file ?
     
  9. frm.mwz

    frm.mwz Well-Known Member

    Joined:
    Mar 8, 2016
    Messages:
    3,629
    Likes Received:
    667
    S.E:
    2019-05-17 04:02:46
    L.T:
    Regular
    L.C:
    7
    backend -> settings -> cron
    retry failed sendings
     

Share This Page