Using Mautic to send transactional emails

Hey all

We have created a solution where we create our transactional emails within Mautic too then use the REST api to send them immediately on request. However, if a user has unsubscribed from our emails the email isn’t sent. Is there another other solution to this problem than

  1. Check if user has unsubscribed
  2. If yes, https://developer.mautic.org/#remove-from-do-not-contact
  3. Send transactional email
  4. Then https://developer.mautic.org/#add-do-not-contact