# Emails are not triggering from the campaign

**URL:** <https://forum.mautic.org/t/emails-are-not-triggering-from-the-campaign/20258>\
**Category:** General Discussion\
**Created:** [July 24, 2021, 12:17pm UTC](https://forum.mautic.org/t/emails-are-not-triggering-from-the-campaign/20258 "2021-07-24T12:17:29Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![aayan2010](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/aayan2010/32/1237_2.png) [@aayan2010](https://forum.mautic.org/u/aayan2010)\
**Post date:** [July 24, 2021, 12:17pm UTC](https://forum.mautic.org/t/emails-are-not-triggering-from-the-campaign/20258/1 "2021-07-24T12:17:29Z")

</div>

Hi,

I am able to send out individual emails from Mautic however through a Campaign the email is not going out.

Below are the configuration of my cron job:

0,10,20,30,40,50 \* \* \* \* php /home/ubuntu/www/xxx/htdocs/bin/console mautic:segments:update  
5,15,25,35,45,55 \* \* \* \* php /home/ubuntu/www/xxx/htdocs/bin/console mautic:campaigns:rebuild  
2,12,22,32,42,52 \* \* \* \* php /home/ubuntu/www/xxx/htdocs/bin/console mautic:campaigns:trigger  
3,13,23,33,43,53 \* \* \* \* php /home/ubuntu/www/xxx/htdocs/bin/console mautic:email:fetch  
4,14,24,34,44,54 \* \* \* \* php /home/ubuntu/www/xxx/htdocs/bin/console mautic:import  
0,5,10,15,20,25,30,35,40,45,50,55 \* \* \* \* php /home/ubuntu/www/xxx/htdocs/bin/console mautic:emails:send  
0,15,30,45, \* \* \* \* php /home/ubuntu/www/xxx/htdocs/bin/console mautic:socialmonitoring

---

<div class="post-metadata">

**Author:** ![robm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/robm/32/260_2.png) [@robm](https://forum.mautic.org/u/robm)\
**Post date:** [July 26, 2021, 6:57am UTC](https://forum.mautic.org/t/emails-are-not-triggering-from-the-campaign/20258/2 "2021-07-26T06:57:15Z")

</div>

Crons look good although I am not a cron expert.

Assuming crons are 100% then we must look at configuration of mautic and the campaign logic. Is email sending failing with a super simple email send campaign that is just segment - send email?

IE look for non cron reasons why the email sending might fail.

---

<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 26, 2021, 7:50am UTC](https://forum.mautic.org/t/emails-are-not-triggering-from-the-campaign/20258/3 "2021-07-26T07:50:25Z")

</div>

Hi, what happens if you run the cron command by hand in ssh?  
For example:  
php /home/ubuntu/www/xxx/htdocs/bin/console mautic:segments:update  
any error?

---

<div class="post-metadata">

**Author:** ![aayan2010](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/aayan2010/32/1237_2.png) [@aayan2010](https://forum.mautic.org/u/aayan2010)\
**Post date:** [July 26, 2021, 7:56am UTC](https://forum.mautic.org/t/emails-are-not-triggering-from-the-campaign/20258/4 "2021-07-26T07:56:23Z")

</div>

sorry to ask but can you please advise how can I run the command for ssh? to check the results?

---

<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 26, 2021, 8:06am UTC](https://forum.mautic.org/t/emails-are-not-triggering-from-the-campaign/20258/5 "2021-07-26T08:06:45Z")

</div>

Sure, you SHOULD ask, so we can help better 🙂 Noone knows this stuff before they start to play around with servers.

Do you have ssh access to your server, or just cPanel or something? Where do you enter these Cron settings?

Joey

---

<div class="post-metadata">

**Author:** ![aayan2010](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/aayan2010/32/1237_2.png) [@aayan2010](https://forum.mautic.org/u/aayan2010)\
**Post date:** [July 26, 2021, 8:14am UTC](https://forum.mautic.org/t/emails-are-not-triggering-from-the-campaign/20258/6 "2021-07-26T08:14:38Z")

</div>

its cPanel where the Cron settings are setup.

---

<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 26, 2021, 9:36am UTC](https://forum.mautic.org/t/emails-are-not-triggering-from-the-campaign/20258/7 "2021-07-26T09:36:03Z")

</div>

Okay, I recommend this video to understand if it’s right:

> **[This new app figures out your cronjobs – Joey Keller](https://joeykeller.com/this-new-app-figures-out-your-cronjobs/)**

Plz give feedback here if possible.

---

<div class="post-metadata">

**Author:** ![aayan2010](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/aayan2010/32/1237_2.png) [@aayan2010](https://forum.mautic.org/u/aayan2010)\
**Post date:** [July 26, 2021, 9:52am UTC](https://forum.mautic.org/t/emails-are-not-triggering-from-the-campaign/20258/8 "2021-07-26T09:52:44Z")

</div>

I found that the cronjobs are setup correctly however my email account is giving error while trying to send the test email so how can I check? also the connection status is successful?

---

<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 26, 2021, 10:01am UTC](https://forum.mautic.org/t/emails-are-not-triggering-from-the-campaign/20258/9 "2021-07-26T10:01:19Z")

</div>

Is this a question: “also the connection status is successful?” ?

- You can see connection status when you add the credentials and click on test.
- Do you use see any errors in config - system info - log

---

<div class="post-metadata">

**Author:** ![aayan2010](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/aayan2010/32/1237_2.png) [@aayan2010](https://forum.mautic.org/u/aayan2010)\
**Post date:** [July 26, 2021, 10:36am UTC](https://forum.mautic.org/t/emails-are-not-triggering-from-the-campaign/20258/10 "2021-07-26T10:36:18Z")

</div>

after providing the credentials the status is successful however while sending the test email getting the below error.

Expected response code 354 but got code “554”, with message "554 5.5.1 Error: no valid recipients "

---

<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 26, 2021, 10:42am UTC](https://forum.mautic.org/t/emails-are-not-triggering-from-the-campaign/20258/11 "2021-07-26T10:42:23Z")

</div>

Can you plz make sure the recipient is valid, not a fake email?  
If so, I would suggest to search for "554 5.5.1 Error: no valid recipients " - there are a bunch of topic like that in this forum.

---

<div class="post-metadata">

**Author:** ![aayan2010](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/aayan2010/32/1237_2.png) [@aayan2010](https://forum.mautic.org/u/aayan2010)\
**Post date:** [July 26, 2021, 10:48am UTC](https://forum.mautic.org/t/emails-are-not-triggering-from-the-campaign/20258/12 "2021-07-26T10:48:33Z")

</div>

my understanding is the test email would be going to my personal email address which is active however how can I check the email address settings where the test email will be sending?

---

<div class="post-metadata">

**Author:** ![deepti](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/deepti/32/411_2.png) [@deepti](https://forum.mautic.org/u/deepti)\
**Post date:** [July 26, 2021, 10:57am UTC](https://forum.mautic.org/t/emails-are-not-triggering-from-the-campaign/20258/13 "2021-07-26T10:57:41Z")

</div>

what smtp server you have configured?

---

<div class="post-metadata">

**Author:** ![aayan2010](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/aayan2010/32/1237_2.png) [@aayan2010](https://forum.mautic.org/u/aayan2010)\
**Post date:** [July 26, 2021, 10:59am UTC](https://forum.mautic.org/t/emails-are-not-triggering-from-the-campaign/20258/14 "2021-07-26T10:59:43Z")

</div>

I am using my hostinger account where I configured mautic and their email account.

---

<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 26, 2021, 11:38am UTC](https://forum.mautic.org/t/emails-are-not-triggering-from-the-campaign/20258/15 "2021-07-26T11:38:33Z")

</div>

If the provider status is successful, can you plz create and email and send a test message out?  
Google how to create an email and test with Mautic if you don’t know how.

---

<div class="post-metadata">

**Author:** ![aayan2010](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/aayan2010/32/1237_2.png) [@aayan2010](https://forum.mautic.org/u/aayan2010)\
**Post date:** [July 26, 2021, 11:46am UTC](https://forum.mautic.org/t/emails-are-not-triggering-from-the-campaign/20258/16 "2021-07-26T11:46:51Z")

</div>

while trying to send single email to one contact through mautic, getting the same error as mentioned below.

Failed to send to [fawad.ahmed@hotmail.com](mailto:fawad.ahmed@hotmail.com): Expected response code 354 but got code “554”, with message "554 5.5.1 Error: no valid recipients "

---

<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 26, 2021, 11:59am UTC](https://forum.mautic.org/t/emails-are-not-triggering-from-the-campaign/20258/17 "2021-07-26T11:59:51Z")

</div>

Any of the other topics with the same issue gave no help?

> I would suggest to search for "554 5.5.1 Error: no valid recipients " - there are a bunch of topic like that in this forum.
