# What happened to MauticEmailBundleEntityDoNotEmail ?

**URL:** <https://forum.mautic.org/t/what-happened-to-mauticemailbundleentitydonotemail/9494>\
**Category:** Product Support\
**Created:** [September 17, 2017, 8:05am UTC](https://forum.mautic.org/t/what-happened-to-mauticemailbundleentitydonotemail/9494 "2017-09-17T08:05:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RandomUser](https://avatars.discourse-cdn.com/v4/letter/r/958977/32.png) [@RandomUser](https://forum.mautic.org/u/RandomUser)\
**Post date:** [September 17, 2017, 8:05am UTC](https://forum.mautic.org/t/what-happened-to-mauticemailbundleentitydonotemail/9494/1 "2017-09-17T08:05:25Z")

</div>

I get:

Code:

PHP Fatal error: Class 'Mautic\EmailBundle\Entity\DoNotEmail' not found

How to use DonotEmail now?  
  
BETTER QUESTION:  
How to set a Donotcontact lead programmatically in a mautic plugin?  
  
Thank you.

---

<div class="post-metadata">

**Author:** ![RandomUser](https://avatars.discourse-cdn.com/v4/letter/r/958977/32.png) [@RandomUser](https://forum.mautic.org/u/RandomUser)\
**Post date:** [September 17, 2017, 8:05am UTC](https://forum.mautic.org/t/what-happened-to-mauticemailbundleentitydonotemail/9494/2 "2017-09-17T08:05:25Z")

</div>

I get:

```auto
PHP Fatal error: Class 'Mautic\EmailBundle\Entity\DoNotEmail' not found
```

How to use DonotEmail now?

BETTER QUESTION:  
How to set a Donotcontact lead programmatically in a mautic plugin?

Thank you.
