EZi Posted June 1, 2023 Share Posted June 1, 2023 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 0 Quote Link to comment Share on other sites More sharing options...
JavierCN Posted June 2, 2023 Share Posted June 2, 2023 (edited) 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 June 2, 2023 by JavierCN 0 Quote Link to comment Share on other sites More sharing options...
sitedata Posted June 7, 2023 Share Posted June 7, 2023 Off-topic, but why wait until the day before a domain expires to renew. That's crazy. 0 Quote Link to comment Share on other sites More sharing options...
EZi Posted June 8, 2023 Author Share Posted June 8, 2023 I noticed you didn't use a question mark so I assume it is just a comment followed by a judgement. 0 Quote Link to comment Share on other sites More sharing options...
sitedata Posted June 8, 2023 Share Posted June 8, 2023 I'm sorry, I am not being helpful. I would suggest attempting to bill clients much earlier than 24 hours before the registrar suspends access, however. (At least that is how I understood your previous statement). 0 Quote Link to comment Share on other sites More sharing options...
EZi Posted June 8, 2023 Author Share Posted June 8, 2023 Thanks for your suggestion. We will take it under consideration... 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.