Jump to content
Sign in to follow this  

Stop send email per account

Recommended Posts


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?

Share this post

Link to post
Share on other sites

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.

Share this post

Link to post
Share on other sites

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.

function no_invoice_email($vars) {
        $messagename = $vars['messagename'];
        $merge_fields['abortsend'] = TRUE;
        return $merge_fields;



Edited by twhiting9275

Share this post

Link to post
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.

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.

Sign in to follow this  

  • 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