souzadavi Posted May 27, 2022 Share Posted May 27, 2022 There is any way to disable sending email message per account client? Thanks 0 Quote Link to comment Share on other sites More sharing options...
twhiting9275 Posted June 5, 2022 Share Posted June 5, 2022 huh? If you could elaborate, I'm sure you'd get better assistance here. What, exactly are you seeing, and what, exactly are you trying to prevent? 0 Quote Link to comment Share on other sites More sharing options...
souzadavi Posted June 9, 2022 Author Share Posted June 9, 2022 Hello @twhiting9275 thanks to replied. I would like to disable sending email notification by customers. Some customers do not want to receive any email message from the WHMCS system. 0 Quote Link to comment Share on other sites More sharing options...
twhiting9275 Posted June 9, 2022 Share Posted June 9, 2022 (edited) I mean, this is a billing system. These emails are somewhat important to receive. If they're dead set on not getting these though, you'll have to write a custom hook . Start by looking at EmailPreSend and work on from there. The following hook will get you to completely disable mail. You'll have to add custom user fields and then get this checked against those. You have the tools, go forth and learn to do it. <?php function no_invoice_email($vars) { $messagename = $vars['messagename']; $merge_fields['abortsend'] = TRUE; return $merge_fields; } add_hook("EmailPreSend",1,"no_invoice_email"); ?> Edited June 9, 2022 by twhiting9275 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted June 9, 2022 WHMCS Support Manager Share Posted June 9, 2022 Hi @souzadavi, You can control Email Notifications at the Client Account level via their Profile tab: https://docs.whmcs.com/Clients:Profile_Tab#Email_Notifications 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.