I would like to know if it's possible to disable sending of an email when the case is closed and when the owner of the case changes?

In the "Support Settings" for case, the checkbox "Notify Case Owners when Case Ownership Changes" is disabled.

So I don't understand why an email is sent to the owner when a case is closed or if the owner changes.

The email is sent since I developed an Apex trigger which set the user as owner when he changes the status of a case.

Can you help me please?

Regards Aurélien

  • look for possible WF rule(s) that sends email
    – pnoytechie
    Commented Sep 24, 2015 at 0:36

1 Answer 1


Try clearing out the Case Assigned Template in the Support Settings.

And/Or in your trigger try setting the DML Header properties, the following example is from the docs here.


Even though auto-sent emails can be triggered by actions in the Salesforce user interface, the DMLOptions settings for emailHeader take effect only for DML operations carried out in Apex code.

Account a = new Account(name='Acme Plumbing');

insert a;

Contact c = new Contact(email='[email protected]', firstname='Joe',lastname='Plumber', accountid=a.id);

insert c;

Database.DMLOptions dlo = new Database.DMLOptions();

dlo.EmailHeader.triggerAutoResponseEmail = true;

Case ca = new Case(subject='Plumbing Problems', contactid=c.id);

database.insert(ca, dlo);
  • Sorry for the late. I will test your response when I will have free time but thanks. I read several time the same thing on the internet so I think it is the solution. :)
    – Oupat
    Commented Sep 29, 2015 at 8:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .