# Confirmation email send immediately, cron delayed

**URL:** <https://forum.mautic.org/t/confirmation-email-send-immediately-cron-delayed/26371>\
**Category:** Product Support\
**Tags:** mautic-4\
**Created:** [December 10, 2022, 2:13am UTC](https://forum.mautic.org/t/confirmation-email-send-immediately-cron-delayed/26371 "2022-12-10T02:13:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![entrepositive](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/entrepositive/32/9645_2.png) [@entrepositive](https://forum.mautic.org/u/entrepositive)\
**Post date:** [December 10, 2022, 2:13am UTC](https://forum.mautic.org/t/confirmation-email-send-immediately-cron-delayed/26371/1 "2022-12-10T02:13:24Z")

</div>

My Mautic version is: v4.1.2

Ah the joys of confirming emails and DOI! My problem seems pretty simple and if there’s a best-practice alternative way of doing this, I’m open to it.

Our entry and first-time forms are normally set up to send confirmation email on form Action. This is because adding contact to Segment, then into a Campaign to send the confirmation adds an undesirable waiting period for that email to hit their inbox.

But the form action doesn’t offer the “marketing email” option that would ensure that email won’t ever be sent again. So a contact could receive the confirmation email again even though they’d already confirmed. (And choosing a segment/list email isn’t an option in the context of form action email sending.)

How can we send that confirmation email quickly (immediately) and only once ever to any contact?

Note: We also have n8n at our disposal.

Thanks,  
EP

---

<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 10, 2022, 7:35am UTC](https://forum.mautic.org/t/confirmation-email-send-immediately-cron-delayed/26371/2 "2022-12-10T07:35:23Z")

</div>

Couple of questions:

1. How often you run your cron. It can be done every minute with the proper scripts.
2. Why don’t you want to send the conf email multiple times if someone is requesting it.

Joey

---

<div class="post-metadata">

**Author:** ![entrepositive](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/entrepositive/32/9645_2.png) [@entrepositive](https://forum.mautic.org/u/entrepositive)\
**Post date:** [December 11, 2022, 10:06pm UTC](https://forum.mautic.org/t/confirmation-email-send-immediately-cron-delayed/26371/3 "2022-12-11T22:06:03Z")

</div>

Hey Joey, thanks for the reply!

1. Cron for campaigns are running every 60 seconds. But even 45 seconds is a long time to ask a first-time visitor to wait for an email. Or is this a bad assumption?

2. Conf email I want sent out to any newly identified contact’s email, the first time they have opted in to any ongoing emailing (subscribe to newsletter, other other service-based communication). If they subscribe to a first newsletter, they should confirm their email with a DOI email sent to them with a link to click. Click link, confirm email. Now if they later sign up for a different newsletter, I would not want them to have to confirm again - they are already confirmed.

---

<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 11, 2022, 10:59pm UTC](https://forum.mautic.org/t/confirmation-email-send-immediately-cron-delayed/26371/4 "2022-12-11T22:59:22Z")

</div>

Maybe look at this plugin:

> **[GitHub - content-optimizer-gmbh/mautic-doi-plugin: A robust and flexible way...](https://github.com/content-optimizer-gmbh/mautic-doi-plugin)**
>
> A robust and flexible way to add double-opt-in (DOI) to any form in Mautic - GitHub - content-optimizer-gmbh/mautic-doi-plugin: A robust and flexible way to add double-opt-in (DOI) to any form in M...

---

<div class="post-metadata">

**Author:** ![entrepositive](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/entrepositive/32/9645_2.png) [@entrepositive](https://forum.mautic.org/u/entrepositive)\
**Post date:** [December 11, 2022, 11:51pm UTC](https://forum.mautic.org/t/confirmation-email-send-immediately-cron-delayed/26371/5 "2022-12-11T23:51:30Z")

</div>

> [@entrepositive](#):
>
> r

Wow thnks for sharing! This looks like it could work, or at least simplify the process. I will check this out and see if it prevents double-sending the DOI emails.

Thanks @joeyk

EP
