Jump to content

Custom reminder emails to clients with auto-renew domain


EZi

Recommended Posts

Hi All,

We send out a lot of emails to remind clients of their domain renewal coming up. We are mandated to send at least 2 reminders by auDA irrespective.

Most of these clients have their domain set to auto-renew and have a valid and current payment method to support auto-renew as we set it to "no pay-no renew".

We auto-renew one day before the due date.

The reminder emails currently say something like, "Please disregard this reminder if you have set up auto-renew", but still the reminders cause a lot of confusion. Ie, I have auto-renew, so why are you sending me this email? It causes a lot of reverse workflow.

Are there any techs out there that set up a system (hooks perhaps) that somehow interrogates the database and excludes auto-reminder clients from receiving this standard email or perhaps sending a custom email to these clients?

Any thoughts on this?

Cheers,

Rene

 

Link to comment
Share on other sites

Hi Rene:

You can check for those emails in the EmailPreSend:

https://developers.whmcs.com/hooks-reference/everything-else/#emailpresend

Just check for the subject:

add_hook('EmailPreSend', 1, function($vars) {
    $merge_fields = [];
    if ($vars['messagename'] == '{THE SUBJECT}') {
        // Check the auto-renew status and stop the email from sending the specific message.
        $merge_fields['abortsend'] = true;

    }
    return $merge_fields;
});

 

Edited by JavierCN
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated