souzadavi 9 Posted May 27, 2022 There is any way to disable sending email message per account client? Thanks 0 Quote Share this post Link to post Share on other sites
twhiting9275 52 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 Share this post Link to post Share on other sites
souzadavi 9 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 Share this post Link to post Share on other sites
twhiting9275 52 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 Share this post Link to post Share on other sites
WHMCS John 242 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 Share this post Link to post Share on other sites