# Send transactional emails to "Do Not Contact" contacts

**URL:** <https://forum.mautic.org/t/send-transactional-emails-to-do-not-contact-contacts/10504>\
**Category:** Product Support\
**Created:** [May 15, 2018, 5:42am UTC](https://forum.mautic.org/t/send-transactional-emails-to-do-not-contact-contacts/10504 "2018-05-15T05:42:05Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![micheljung](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/micheljung/32/323_2.png) [@micheljung](https://forum.mautic.org/u/micheljung)\
**Post date:** [May 15, 2018, 5:42am UTC](https://forum.mautic.org/t/send-transactional-emails-to-do-not-contact-contacts/10504/1 "2018-05-15T05:42:05Z")

</div>

Hi,

When a contact unsubscribes from email, can we still send him transactional emails?  
We’d like to use Mautic for transactional emails like Password reset which, of course, one should not be able to unsubscribe from.

---

<div class="post-metadata">

**Author:** ![kranthi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kranthi/32/313_2.png) [@kranthi](https://forum.mautic.org/u/kranthi)\
**Post date:** [May 15, 2018, 3:04pm UTC](https://forum.mautic.org/t/send-transactional-emails-to-do-not-contact-contacts/10504/2 "2018-05-15T15:04:46Z")

</div>

Hi,  
Try by remove the unsubscribe link in your email template.

---

<div class="post-metadata">

**Author:** ![rorymadden](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/rorymadden/32/130_2.png) [@rorymadden](https://forum.mautic.org/u/rorymadden)\
**Post date:** [June 8, 2018, 5:09am UTC](https://forum.mautic.org/t/send-transactional-emails-to-do-not-contact-contacts/10504/3 "2018-06-08T05:09:42Z")

</div>

To save someone time I tested this and it doesn’t work. It would be great if we could send transactional emails to people who unsubscribed.

---

<div class="post-metadata">

**Author:** ![lalurran](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/lalurran/32/570_2.png) [@lalurran](https://forum.mautic.org/u/lalurran)\
**Post date:** [July 1, 2020, 3:34pm UTC](https://forum.mautic.org/t/send-transactional-emails-to-do-not-contact-contacts/10504/4 "2020-07-01T15:34:03Z")

</div>

Hey @micheljung! Did you solve this issue? If yes, how did you do it?

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [July 2, 2020, 8:19pm UTC](https://forum.mautic.org/t/send-transactional-emails-to-do-not-contact-contacts/10504/5 "2020-07-02T20:19:59Z")

</div>

I would solve it like this:

1. create a segment called “do not contact marketing”. Exclude this segment from all other marketing segment. Maybe set filer for “do not contact marketing” tag
2. create a segment called “unsubscribed” where you filter for everyone who sets do not contact via unsub link.
3. create a campaign, which starts with the segment you just created in step 2.

- remove do not contact
- add to “do not contact marketing tag to these people”

When you send marketing, make sure you exclude “do not contact marketing”

Good luck to you!

---

<div class="post-metadata">

**Author:** ![lalurran](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/lalurran/32/570_2.png) [@lalurran](https://forum.mautic.org/u/lalurran)\
**Post date:** [July 2, 2020, 9:29pm UTC](https://forum.mautic.org/t/send-transactional-emails-to-do-not-contact-contacts/10504/6 "2020-07-02T21:29:22Z")

</div>

Thanks for the input @joeyk. I’ll consider it!

---

<div class="post-metadata">

**Author:** ![steverobinson](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/steverobinson/32/174_2.png) [@steverobinson](https://forum.mautic.org/u/steverobinson)\
**Post date:** [March 2, 2021, 3:44pm UTC](https://forum.mautic.org/t/send-transactional-emails-to-do-not-contact-contacts/10504/7 "2021-03-02T15:44:07Z")

</div>

@joeyk Funny - this was what came up when I googled this after our conversation.

I do think that this is an area of confusion for some people, especially anyone coming from Marketo where transactional emails do work this way.

---

<div class="post-metadata">

**Author:** ![da644](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/da644/32/4386_2.png) [@da644](https://forum.mautic.org/u/da644)\
**Post date:** [February 3, 2022, 3:16pm UTC](https://forum.mautic.org/t/send-transactional-emails-to-do-not-contact-contacts/10504/8 "2022-02-03T15:16:41Z")

</div>

I’ve just come across this issue as well, as we send all our emails via Mautic and I had assumed that transactional emails, like forgotten password, would never be included in the DNC. The suggestion put forward by @joeyk, while it would probably work, is open to human error with that last step of remembering to exclude a segment when you send the email.

I would suggest that the way “unsubscribe” in Mautic is implemented is actually incorrect. “Unsubscribe” and “Do Not Contact” have been conflated into one thing, as if they are the same, when they are not. Someone who doesn’t want to receive a particular newsletter or marketing communication from a company isn’t the same as someone saying “Do not contact me again”. Unsubscribe should remove someone either from one or all segments and mark them not to be added to them again and not marked as never to be contacted for any reason.

I’ve unsubscribed from marketing emails from plenty of places I still use and want to receive transactional emails from, like reset password or order confirmation emails, but me saying I don’t want marketing emails from them certainly isn’t me saying I don’t want any emails from them and to the best of my knowledge I don’t think any of them have taken it like that.

I would suggest DNC should be only something that an admin does explicitly on a contact in the Mautic interface or via the API and not something that is set by the unsubscribe process. It just looks like whoever implemented it just did the easiest thing for contacts to not receive emails anymore, which was to mark them as DNC, without giving it too much thought.

---

<div class="post-metadata">

**Author:** ![brad-kinksters](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/brad-kinksters/32/8873_2.png) [@brad-kinksters](https://forum.mautic.org/u/brad-kinksters)\
**Post date:** [December 13, 2022, 7:29am UTC](https://forum.mautic.org/t/send-transactional-emails-to-do-not-contact-contacts/10504/9 "2022-12-13T07:29:21Z")

</div>

I agree with @da644, this puts you in a tough spot when it comes to transactional email. I just started using Mautic and am sending users onboarding messaging; if they hit the unsubscribe button, they get DNC’d. But, as a dating app, I still need to be able to send communication like, “you had a content report against you” or “your photo was rejected,” or whatever.

Need to re-think my plan to send transactional emails with Mautic if the DNC is so broad.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [December 13, 2022, 8:00am UTC](https://forum.mautic.org/t/send-transactional-emails-to-do-not-contact-contacts/10504/10 "2022-12-13T08:00:50Z")

</div>

Hi, there is a feature request regarding this issue:

> [@Personal email should not contain an unsubscribe header (Custom Email)](https://forum.mautic.org/t/personal-email-should-not-contain-an-unsubscribe-header-custom-email/18525/12):
>
> Thanks for all your contributions. I try to summarize and propose a solution for further discussion: Mautic sends 3 types of emails: Custom Email: One on one personal emails Marketing Emails: E.g. newsletters Transactional Emails: E.g. subscribe to a newsletter I think we agree: Custom Email: Custom Emails should not have any unsubscribe or other indication that this email comes from a list. It should be the same as if the person sends it from their personal email client. Marketing Emails:…

---

<div class="post-metadata">

**Author:** ![da644](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/da644/32/4386_2.png) [@da644](https://forum.mautic.org/u/da644)\
**Post date:** [December 13, 2022, 8:51am UTC](https://forum.mautic.org/t/send-transactional-emails-to-do-not-contact-contacts/10504/11 "2022-12-13T08:51:28Z")

</div>

This doesn’t appear to address the issue with the conflation of “Unsubscribe” and “Do not Contact” which is the other issue here. You would still need the “Unsubscribe” option to NOT DNC the user.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [December 13, 2022, 9:04am UTC](https://forum.mautic.org/t/send-transactional-emails-to-do-not-contact-contacts/10504/12 "2022-12-13T09:04:53Z")

</div>

Would you say, that DNC is more like “Bounce complaint, don’t ever wright to this person” and Unsubscribe is “don’t send marketing emails” ?

In other words:  
DNC = Blacklisted, no contact ever  
Unsubscribe = marketing no, transactional yes

---

<div class="post-metadata">

**Author:** ![brad-kinksters](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/brad-kinksters/32/8873_2.png) [@brad-kinksters](https://forum.mautic.org/u/brad-kinksters)\
**Post date:** [December 13, 2022, 10:06am UTC](https://forum.mautic.org/t/send-transactional-emails-to-do-not-contact-contacts/10504/13 "2022-12-13T10:06:35Z")

</div>

@joeyk Thanks for the pointer to that other thread. If I understand it correctly, the proposal there is to limit the surfacing of unsubscribe information in the email if it is transactional. That’s certainly part of the broader picture, however I think the issue in this thread is more narrow.

As both @da644 and I have encountered, users who click the “Unsubscribe” link in e-mails are shown one of two very different responses, depending on site configuration:

1. If the “Show Contact Preferences” option is enabled, they are shown a contact preferences page instead of direct unsubscription. (Interestingly, if you have no segments configured as public to end-users, the form is blank and you just see a Save button, which is probably the worst case for accidental misconfiguration since you’re denying any choice at all.)
2. If the contact preferences option is disabled, they are DNC’d.

If we put aside the specific mechanics, the desire is to allow users to opt-out of _marketing_ emails entirely, but not DNC them. So that is where there is some intersection with the other issue; Mautic needs to be aware in some way of the difference, and allow transactional emails continue to be sent.

I’m still new to the Mautic data model but it seems like some of the building blocks are in place for some sort of solution, but also some re-engineering.

Furthermore, the DNC flag is important; it needs to be respected for “true” DNC conditions, e.g. when I get a webhook from SendGrid that says an address has bounced or is blocked on their end. If I keep trying to send emails to it (including transactional mail) then my reputation score will suffer.

For a no-code solution, I’m thinking something a little less error-prone than the proposal [above](https://forum.mautic.org/t/send-transactional-emails-to-do-not-contact-contacts/10504/5).

1. Add a segment called “Receive marketing messages” which is public and exposed to the preferences center. Its only filter is contact email not null.
2. When configuring marketing segments, the include membership in the above segment as a requirement.

E.g.:

![Screenshot from 2022-12-13 20-57-49](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/4/4423f83c846263f279667aa33edd163bfca1c4ed.png)

Another thought, but it would require code, is that Mautic already has a concept of marketing vs. transactional emails, so perhaps that could be extended more generally to a new flag on contacts.

Finally, this and the other issue offer potential interplay with [RFC 2369](https://www.rfc-editor.org/rfc/rfc2369#section-3.2) (list-unsubscribe header) and [RFC 8058](https://www.rfc-editor.org/rfc/rfc8058#section-1) (one-click unsubscribe). Case #2 above is close-ish to one-click unsubscribe, though we would need to implement a specific route to handle the `POST`, but the action would be identical to what `PublicController::getUnsubscribeMessage()` does, now.

---

<div class="post-metadata">

**Author:** ![brad-kinksters](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/brad-kinksters/32/8873_2.png) [@brad-kinksters](https://forum.mautic.org/u/brad-kinksters)\
**Post date:** [December 13, 2022, 10:47am UTC](https://forum.mautic.org/t/send-transactional-emails-to-do-not-contact-contacts/10504/14 "2022-12-13T10:47:12Z")

</div>

Related: [Private segments are visible in the preferences center, but can't be toggled. · Issue #11808 · mautic/mautic · GitHub](https://github.com/mautic/mautic/issues/11808)

---

<div class="post-metadata">

**Author:** ![brad-kinksters](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/brad-kinksters/32/8873_2.png) [@brad-kinksters](https://forum.mautic.org/u/brad-kinksters)\
**Post date:** [December 16, 2022, 3:45am UTC](https://forum.mautic.org/t/send-transactional-emails-to-do-not-contact-contacts/10504/15 "2022-12-16T03:45:50Z")

</div>

It actually appears this could be “easily” accomplished by editing the send email API controller to take an option to ignore DNC. There’s a flag in there to do just that, however it’s not exposed and currently only used by a form handler.

> **[Search · ignoreDNC · mautic/mautic](https://github.com/mautic/mautic/search?q=ignoreDNC)**
>
> Mautic: Open Source Marketing Automation Software. - Search · ignoreDNC · mautic/mautic
