# Email not always triggered

**URL:** <https://forum.mautic.org/t/email-not-always-triggered/9486>\
**Category:** Product Support\
**Created:** [September 15, 2017, 6:33pm UTC](https://forum.mautic.org/t/email-not-always-triggered/9486 "2017-09-15T18:33:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stijnbern](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@stijnbern](https://forum.mautic.org/u/stijnbern)\
**Post date:** [September 15, 2017, 6:33pm UTC](https://forum.mautic.org/t/email-not-always-triggered/9486/1 "2017-09-15T18:33:16Z")

</div>

So, I got this strange (at first seemingly random\*\*) issue of a campaign not always sending the welcome email.  
  
  
  
The campaign looks like this:

1. form is filled in  
  
2a) Welcome Email is sent  
  
2b) If a specific page is visited after optin a tag is added to the contact.  
  
Visually it looks like this:  
  
[Campaign](https://db.tt/lHIjzkgupI)  
  
  
  
Sometimes 2a (sending the welcome email) does not happen.  
  
  
  
\*\* I was able to ‘reproduce’ when it does not happen.  
  
So this works as expected when the following happens  
  
-\> form is filled in  
  
-\> Behind the scenes: the cronjob to send emails is triggerd =\> causing the Welcome email to be sent (2a)  
  
-\> Afterward that cronjob the subscriber can visit the specific page so the tag is added.  
  
  
  
It does NOT work as expected when the following occurs  
  
-\> form is filled in  
  
-\> the subscriber visits the specific page BEFORE the cronjob (to send emails) is triggered.  
  
-\> So the tag is added to the contact but the EMAIL does not get send.  
  
  
  
Anyone has had a similar issue? And solution.  
  
  
  
My current work-around is to make two campaigns.  
  
One that handles 2a) and another that handles 2b) with the same trigger (form submitted). It works but not ideal.  
  
  
  
PHP version: PHP 7.1.9 (cli)  
  
Mautic version: a fresh install of the latest version (2.10.0)

---

<div class="post-metadata">

**Author:** ![stijnbern](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@stijnbern](https://forum.mautic.org/u/stijnbern)\
**Post date:** [September 15, 2017, 6:33pm UTC](https://forum.mautic.org/t/email-not-always-triggered/9486/2 "2017-09-15T18:33:16Z")

</div>

So, I got this strange (at first seemingly random\*\*) issue of a campaign not always sending the welcome email.

The campaign looks like this:

1. form is filled in  
2a) Welcome Email is sent  
2b) If a specific page is visited after optin a tag is added to the contact.  
Visually it looks like this:  
[Campaign](https://db.tt/lHIjzkgupI)

Sometimes 2a (sending the welcome email) does not happen.

\*\* I was able to ‘reproduce’ when it does not happen.  
So this works as expected when the following happens  
-\> form is filled in  
-\> Behind the scenes: the cronjob to send emails is triggerd =\> causing the Welcome email to be sent (2a)  
-\> Afterward that cronjob the subscriber can visit the specific page so the tag is added.

It does NOT work as expected when the following occurs  
-\> form is filled in  
-\> the subscriber visits the specific page BEFORE the cronjob (to send emails) is triggered.  
-\> So the tag is added to the contact but the EMAIL does not get send.

Anyone has had a similar issue? And solution.

My current work-around is to make two campaigns.  
One that handles 2a) and another that handles 2b) with the same trigger (form submitted). It works but not ideal.

PHP version: PHP 7.1.9 (cli)  
Mautic version: a fresh install of the latest version (2.10.0)

---

<div class="post-metadata">

**Author:** ![stijnbern](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@stijnbern](https://forum.mautic.org/u/stijnbern)\
**Post date:** [September 26, 2017, 11:03am UTC](https://forum.mautic.org/t/email-not-always-triggered/9486/3 "2017-09-26T11:03:10Z")

</div>

Someone know whether this is ‘normal’ behavior?
