Jump to content

Stop send email per account


Recommended Posts

  • 2 weeks later...

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
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.

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