# SMS and Email in campaign, only sms is sent

**URL:** <https://forum.mautic.org/t/sms-and-email-in-campaign-only-sms-is-sent/35041>\
**Category:** Product Support\
**Created:** [February 18, 2025, 2:38am UTC](https://forum.mautic.org/t/sms-and-email-in-campaign-only-sms-is-sent/35041 "2025-02-18T02:38:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cfipilot](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/cfipilot/32/13694_2.png) [@cfipilot](https://forum.mautic.org/u/cfipilot)\
**Post date:** [February 18, 2025, 2:38am UTC](https://forum.mautic.org/t/sms-and-email-in-campaign-only-sms-is-sent/35041/1 "2025-02-18T02:38:11Z")

</div>

**Your software**  
My Mautic version is: 5.2.1  
My PHP version is: 8.1  
My Database type and version is: mysql

**Your problem**  
My problem is:  
Created a test campaign to send an email and SMS.

 ![Screenshot 2025-02-17 at 9.29.41 PM](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/c/cb209622d4eae5f38a6d0cf68249eb9c4d0e233b.png)

SMS is sent email is not.

Created a campaign with just email - email is sent  
Created a campaign with just SMS - SMS is sent

---

<div class="post-metadata">

**Author:** ![ricfreire](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ricfreire/32/14973_2.png) [@ricfreire](https://forum.mautic.org/u/ricfreire)\
**Post date:** [February 18, 2025, 1:35pm UTC](https://forum.mautic.org/t/sms-and-email-in-campaign-only-sms-is-sent/35041/2 "2025-02-18T13:35:45Z")

</div>

Hello @cfipilot,

You didn’t provide much detail about your issue, which makes it a bit difficult to help.

First, is your **SMTP properly configured**? Go to Settings \> Configurations \> Email Settings and check the \*\*Email DSN to ensure it’s set up correctly. You can also use the **“Send test email”** option to confirm that everything is working as expected.

If you’re using an **external service or plugin** (Amazon SES for example), double-check with their support or documentation to make sure everything is properly set up.

Additionally, review your **error logs** to see if any relevant messages appear that might indicate the issue.

Did your campaigns work before and suddenly stop, or is this your first campaign? This detail can help narrow down potential causes.

Let me know, and I’ll do my best to help.

Best regards,  
Ricardo

---

<div class="post-metadata">

**Author:** ![cfipilot](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/cfipilot/32/13694_2.png) [@cfipilot](https://forum.mautic.org/u/cfipilot)\
**Post date:** [February 18, 2025, 2:05pm UTC](https://forum.mautic.org/t/sms-and-email-in-campaign-only-sms-is-sent/35041/3 "2025-02-18T14:05:36Z")

</div>

Created a campaign with just email - email is sent  
Created a campaign with just SMS - SMS is sent

These would indicate that email/SMS was setup correctly.

No Errors in logs.

```auto
[2025-02-18T04:31:02.013137+00:00] mautic.DEBUG: CAMPAIGN: Triggering kickoff events {"hostname":"33e62a45d7ef","pid":413}
[2025-02-18T04:31:02.023228+00:00] mautic.DEBUG: CAMPAIGN: Processing the following events: 42, 43 {"hostname":"33e62a45d7ef","pid":413}
[2025-02-18T04:31:02.032039+00:00] mautic.DEBUG: CAMPAIGN: Processing the following contacts: 1 {"hostname":"33e62a45d7ef","pid":413}
[2025-02-18T04:31:02.046619+00:00] mautic.DEBUG: CAMPAIGN: (42) Executing immediately {"hostname":"33e62a45d7ef","pid":413}
[2025-02-18T04:31:02.046707+00:00] mautic.DEBUG: CAMPAIGN: Event ID# 42 to be executed on 2025-02-18 04:31:02 UTC compared to 2025-02-18 04:31:02 UTC {"hostname":"33e62a45d7ef","pid":413}
[2025-02-18T04:31:02.047006+00:00] mautic.DEBUG: CAMPAIGN: (43) Executing immediately {"hostname":"33e62a45d7ef","pid":413}
[2025-02-18T04:31:02.047069+00:00] mautic.DEBUG: CAMPAIGN: Event ID# 43 to be executed on 2025-02-18 04:31:02 UTC compared to 2025-02-18 04:31:02 UTC {"hostname":"33e62a45d7ef","pid":413}
[2025-02-18T04:31:02.047168+00:00] mautic.DEBUG: CAMPAIGN: (42) Executing immediately {"hostname":"33e62a45d7ef","pid":413}
[2025-02-18T04:31:02.047221+00:00] mautic.DEBUG: CAMPAIGN: Event ID# 42 to be executed on 2025-02-18 04:31:01 UTC {"hostname":"33e62a45d7ef","pid":413}
[2025-02-18T04:31:02.047280+00:00] mautic.DEBUG: CAMPAIGN: (43) Executing immediately {"hostname":"33e62a45d7ef","pid":413}
[2025-02-18T04:31:02.047319+00:00] mautic.DEBUG: CAMPAIGN: Event ID# 43 to be executed on 2025-02-18 04:31:01 UTC {"hostname":"33e62a45d7ef","pid":413}
[2025-02-18T04:31:02.088735+00:00] mautic.DEBUG: Segment QB: Segment has no filters {"segmentId":1} {"hostname":"33e62a45d7ef","pid":415}
[2025-02-18T04:31:02.088960+00:00] mautic.INFO: Segment QB - No new leads for segment found {"hostname":"33e62a45d7ef","pid":415}
[2025-02-18T04:31:02.091319+00:00] mautic.DEBUG: Segment QB: Orphan Leads Count SQL: SELECT count(leadIdPrimary) count, max(leadIdPrimary) maxId, min(leadIdPrimary) minId FROM (SELECT DISTINCT orp.lead_id as leadIdPrimary, orp.lead_id as id, orp.leadlist_id FROM lead_lists_leads orp WHERE (orp.leadlist_id = 1) AND (orp.manually_added = '0') AND (orp.lead_id NOT IN (SELECT l.id FROM leads l))) sss {"segmentId":1} {"hostname":"33e62a45d7ef","pid":415}
[2025-02-18T04:31:02.093542+00:00] mautic.DEBUG: Segment QB: Query took: 00:00:00.002099, Result count: 3 {"segmentId":1} {"hostname":"33e62a45d7ef","pid":415}
[2025-02-18T04:31:02.119284+00:00] mautic.DEBUG: CAMPAIGN: Executing sms.send_text_sms ID 42 {"hostname":"33e62a45d7ef","pid":413}
[2025-02-18T04:31:02.120147+00:00] mautic.DEBUG: LEAD: 1 set as system lead. {"hostname":"33e62a45d7ef","pid":413}

```

event 42 is SMS  
event 43 is EMAIL

You can see email is doesnt get queued

I was able to make it work by delaying the email 1 min. I think there is a bug on trigger 2 events at the same time and using rabbitmq queues. I havent tested with just crons. But i would think with queues it should be FIFO.
