# Emails not sending

**URL:** <https://forum.mautic.org/t/emails-not-sending/7664>\
**Category:** Product Support\
**Created:** [February 24, 2017, 4:27am UTC](https://forum.mautic.org/t/emails-not-sending/7664 "2017-02-24T04:27:09Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![charlescorn](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/charlescorn/32/155_2.png) [@charlescorn](https://forum.mautic.org/u/charlescorn)\
**Post date:** [February 24, 2017, 4:27am UTC](https://forum.mautic.org/t/emails-not-sending/7664/1 "2017-02-24T04:27:09Z")

</div>

I just tried to send a new segment email. After clicking send, the emails are just sat doing nothing. They should be sent immediately.  
  
  
  
 ![Screen-Shot-2017-02-24-at-11.09.04-AM.png](http://ieltscharlie.com/wp-content/uploads/2017/02/Screen-Shot-2017-02-24-at-11.09.04-AM.png)  
  
  
  
In the current error log in System Info, I have these error messages:  
  
  
  
[2017-02-24 11:00:00] mautic.ERROR: PHP Error: Call to undefined method setApiKey - in file /home/theonls1/public\_html/ieltscharlie/go/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/EsmtpTransport.php - at line 291 [] []  
  
[2017-02-24 11:00:04] mautic.ERROR: PHP Error: Call to undefined method setApiKey - in file /home/theonls1/public\_html/ieltscharlie/go/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/EsmtpTransport.php - at line 291 [] []  
  
  
  
(Messages which might as well be written in Sanskrit for all the use they are to me!)  
  
  
  
I’d actually tried sending these emails around 45 minutes before this.  
  
  
  
There’s nothing in the /app/spool folder.  
  
I’ve been able to send segment emails before, although I haven’t done this for a couple of weeks - campaign emails are sending ok.  
  
I can send a test email via Amazon SES.  
  
  
  
Help!

---

<div class="post-metadata">

**Author:** ![charlescorn](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/charlescorn/32/155_2.png) [@charlescorn](https://forum.mautic.org/u/charlescorn)\
**Post date:** [February 24, 2017, 4:27am UTC](https://forum.mautic.org/t/emails-not-sending/7664/2 "2017-02-24T04:27:09Z")

</div>

I just tried to send a new segment email. After clicking send, the emails are just sat doing nothing. They should be sent immediately.

![](http://ieltscharlie.com/wp-content/uploads/2017/02/Screen-Shot-2017-02-24-at-11.09.04-AM.png)

In the current error log in System Info, I have these error messages:

[2017-02-24 11:00:00] mautic.ERROR: PHP Error: Call to undefined method setApiKey - in file /home/theonls1/public\_html/ieltscharlie/go/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/EsmtpTransport.php - at line 291 [] []  
[2017-02-24 11:00:04] mautic.ERROR: PHP Error: Call to undefined method setApiKey - in file /home/theonls1/public\_html/ieltscharlie/go/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/EsmtpTransport.php - at line 291 [] []

(Messages which might as well be written in Sanskrit for all the use they are to me!)

I’d actually tried sending these emails around 45 minutes before this.

There’s nothing in the /app/spool folder.  
I’ve been able to send segment emails before, although I haven’t done this for a couple of weeks - campaign emails are sending ok.  
I can send a test email via Amazon SES.

Help!

---

<div class="post-metadata">

**Author:** ![charlescorn](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/charlescorn/32/155_2.png) [@charlescorn](https://forum.mautic.org/u/charlescorn)\
**Post date:** [February 25, 2017, 6:11am UTC](https://forum.mautic.org/t/emails-not-sending/7664/3 "2017-02-25T06:11:54Z")

</div>

Thanks. I’m on 2.5.1. (Haven’t yet worked out how to update the software)

---

<div class="post-metadata">

**Author:** ![charlescorn](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/charlescorn/32/155_2.png) [@charlescorn](https://forum.mautic.org/u/charlescorn)\
**Post date:** [February 25, 2017, 7:07am UTC](https://forum.mautic.org/t/emails-not-sending/7664/4 "2017-02-25T07:07:54Z")

</div>

I made the change. It still didn’t work.

I’m ugrading now to 2.6.1 after backing everything up. Fingers and toes are crossed.

---

<div class="post-metadata">

**Author:** ![charlescorn](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/charlescorn/32/155_2.png) [@charlescorn](https://forum.mautic.org/u/charlescorn)\
**Post date:** [February 25, 2017, 7:42am UTC](https://forum.mautic.org/t/emails-not-sending/7664/5 "2017-02-25T07:42:06Z")

</div>

…and the update has been stuck on “downloading package” for 35 minutes ☹

(Why am I not surprised)

---

<div class="post-metadata">

**Author:** ![charlescorn](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/charlescorn/32/155_2.png) [@charlescorn](https://forum.mautic.org/u/charlescorn)\
**Post date:** [February 25, 2017, 7:48am UTC](https://forum.mautic.org/t/emails-not-sending/7664/6 "2017-02-25T07:48:59Z")

</div>

Ok, on my second attempt it installed…let’s hope things work now !

---

<div class="post-metadata">

**Author:** ![charlescorn](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/charlescorn/32/155_2.png) [@charlescorn](https://forum.mautic.org/u/charlescorn)\
**Post date:** [February 25, 2017, 9:48am UTC](https://forum.mautic.org/t/emails-not-sending/7664/7 "2017-02-25T09:48:55Z")

</div>

I’ve now upgraded to 2.6.1. I am still completely unable to send any segment emails. Campaign emails send ok.

I have created a new email, to be sent to a new segment (and just to add to the fun and games, the email builder won’t let me drag text boxes into my email body). When I send this email, the emails are still stuck as pending.

Again, there is nothing in the app/spool folder. There are now no error logs in system config. There is however plenty in the app/logs folder, a 6.26MB file no less. Here’s an example of what is in there:

[2017-02-25 07:45:15] event.DEBUG: Notified event “console.command” to listener “SymfonyComponentHttpKernelEventListenerDebugHandlersListener::configure”. [] []  
[2017-02-25 07:45:15] event.DEBUG: Notified event “console.terminate” to listener “MauticCoreBundleEventListenerConsoleTerminateListener::onConsoleTerminate”. [] []  
[2017-02-25 07:45:15] event.DEBUG: Notified event “console.terminate” to listener “SymfonyBundleSwiftmailerBundleEventListenerEmailSenderListener::onTerminate”. [] []  
[2017-02-25 07:45:16] event.DEBUG: Notified event “console.command” to listener “SymfonyComponentHttpKernelEventListenerDebugHandlersListener::configure”. [] []  
[2017-02-25 07:45:16] doctrine.DEBUG: SHOW FULL TABLES WHERE Table\_type = ‘BASE TABLE’ [] []  
[2017-02-25 07:45:16] doctrine.DEBUG: SELECT version FROM maunf\_migrations [] []  
[2017-02-25 07:45:16] doctrine.DEBUG: SELECT version FROM maunf\_migrations WHERE version IN (‘20150402000000’, ‘20150504000000’, ‘20150521000000’, ‘20150718000000’, ‘20150724000000’, ‘20150801000000’, ‘20150829000000’, ‘20150901000000’, ‘20151022000000’, ‘20151120000000’, ‘20151207000000’, ‘20160114000000’, ‘20160225000000’, ‘20160405000000’, ‘20160414000000’, ‘20160420000000’, ‘20160426000000’, ‘20160429000000’, ‘20160504000000’, ‘20160506000000’, ‘20160520000000’, ‘20160523000000’, ‘20160606000000’, ‘20160615000000’, ‘20160617000318’, ‘20160624032452’, ‘20160630000000’, ‘20160630000001’, ‘20160630000002’, ‘20160712000000’, ‘20160712000001’, ‘20160719000000’, ‘20160720000000’, ‘20160722000000’, ‘20160725161822’, ‘20160726000000’, ‘20160726000001’, ‘20160728000000’, ‘20160731000000’, ‘20160805000123’, ‘20160808000000’, ‘20160916000000’, ‘20160919204648’, ‘20160920195943’, ‘20160926000000’, ‘20160926000001’, ‘20160926182807’, ‘20161004080958’, ‘20161004090629’, ‘20161004123446’, ‘20161024162029’, ‘20161026110456’, ‘20161026202839’, ‘20161031134707’, ‘20161116195435’, ‘20161122172519’, ‘20161122215214’, ‘20161123225456’, ‘20161124145649’, ‘20161125002837’, ‘20161222183556’, ‘20170106102310’, ‘20170108012944’, ‘20170109025947’, ‘20170113015255’, ‘20170113143922’, ‘20170127205928’) ORDER BY version DESC LIMIT 1 [] []  
[2017-02-25 07:45:16] doctrine.DEBUG: SELECT version FROM maunf\_migrations [] []  
[2017-02-25 07:45:16] doctrine.DEBUG: “START TRANSACTION” [] []  
[2017-02-25 07:45:16] doctrine.DEBUG: SELECT TABLE\_NAME AS `Table`, NON\_UNIQUE AS Non\_Unique, INDEX\_NAME AS Key\_name, SEQ\_IN\_INDEX AS Seq\_in\_index, COLUMN\_NAME AS Column\_Name, COLLATION AS Collation, CARDINALITY AS Cardinality, SUB\_PART AS Sub\_Part, PACKED AS Packed, NULLABLE AS `Null`, INDEX\_TYPE AS Index\_Type, COMMENT AS Comment FROM information\_schema.STATISTICS WHERE TABLE\_NAME = ‘maunf\_dynamic\_content\_stats’ AND TABLE\_SCHEMA = ‘theonls1\_maut653’ [] []

Maybe this is connected with the update to 2.6.1. I have no idea if this might be related to my inability to send emails.

In a log file from yesterday (the one I posted at the top of the thread), I’ve also noticed this information:

[2017-02-24 13:18:41] mautic.ERROR: Deprecation: SymfonyComponentDependencyInjectionDefinition::setFactoryService(doctrine) is deprecated since version 2.6 and will be removed in 3.0. Use Definition::setFactory() instead. - in file /home/theonls1/public\_html/ieltscharlie/go/vendor/symfony/dependency-injection/Definition.php - at line 204 [] []

In this relevant to my inability to send email?

I am now at a total dead-end. My only option now is to abandon Mautic entirely.

---

<div class="post-metadata">

**Author:** ![charlescorn](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/charlescorn/32/155_2.png) [@charlescorn](https://forum.mautic.org/u/charlescorn)\
**Post date:** [February 25, 2017, 1:19pm UTC](https://forum.mautic.org/t/emails-not-sending/7664/8 "2017-02-25T13:19:51Z")

</div>

Well, it seems that some emails DID send. I tried sending the same email to a smaller segment, and even though the “Sending is in progress” bar was stuck at 0%, Amazon SES (my email server) was reporting that a number of emails (a number similar to the segment size) had been sent. I tried with another small segment and the same thing happened.

When I checked on the Email Channels screen, these 2 emails showed “0 pending” and “x sent” (where “x” is the segment size). Meanwhile, the “Sending is in progress” bar (open in another window) was still stuck at 0%.

So it seems that this “Sending is in progress” bar is one problem. It is not updating for some reason. Here it is again:  
   
 ![](http://ieltscharlie.com/wp-content/uploads/2017/02/Screen-Shot-2017-02-25-at-8.08.00-PM.png)

But there is a second problem. I next tried to send the same email to a much larger segment (1084 contacts). This time it is showing “1084 pending” and “0 sent”. I’ve tried sending all of the emails at once, and also in batches of 100. I’m not 100% sure of this, but some of these may have been sent as the email stats is showing 2 clicks for this email (maybe it was from a test send though) and the number of emails on Amazon SES seems to be a bit higher than earlier.

So it seems none (or only some) of the emails from a larger segment are sending.

All I can do now is throw my hands up in exasperation and frustration and hope I might get some response from someone.

---

<div class="post-metadata">

**Author:** ![charlescorn](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/charlescorn/32/155_2.png) [@charlescorn](https://forum.mautic.org/u/charlescorn)\
**Post date:** [February 27, 2017, 6:20am UTC](https://forum.mautic.org/t/emails-not-sending/7664/9 "2017-02-27T06:20:52Z")

</div>

Anyone?

---

<div class="post-metadata">

**Author:** ![charlescorn](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/charlescorn/32/155_2.png) [@charlescorn](https://forum.mautic.org/u/charlescorn)\
**Post date:** [February 27, 2017, 1:16pm UTC](https://forum.mautic.org/t/emails-not-sending/7664/10 "2017-02-27T13:16:39Z")

</div>

Hi, thanks for getting back to me.

No, it’s set to “send immediately”.

---

<div class="post-metadata">

**Author:** ![charlescorn](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/charlescorn/32/155_2.png) [@charlescorn](https://forum.mautic.org/u/charlescorn)\
**Post date:** [February 27, 2017, 1:28pm UTC](https://forum.mautic.org/t/emails-not-sending/7664/11 "2017-02-27T13:28:20Z")

</div>

No

---

<div class="post-metadata">

**Author:** ![charlescorn](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/charlescorn/32/155_2.png) [@charlescorn](https://forum.mautic.org/u/charlescorn)\
**Post date:** [February 27, 2017, 1:40pm UTC](https://forum.mautic.org/t/emails-not-sending/7664/12 "2017-02-27T13:40:01Z")

</div>

Should I set this cron job up? Do I need to set a “publish at” date for this?

The documentation says: “the emails must be published and must have a published up date” - does “published up” = “publish at”?

(A previous segment email sent without this cron job.)

Also

php /path/to/mautic/app/console mautic:broadcasts:send [–id=ID] [–channel=CHANNEL]

ID is from the Emails list. What goes as CHANNEL? Is it “EMAILS” ?

---

<div class="post-metadata">

**Author:** ![charlescorn](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/charlescorn/32/155_2.png) [@charlescorn](https://forum.mautic.org/u/charlescorn)\
**Post date:** [February 27, 2017, 2:00pm UTC](https://forum.mautic.org/t/emails-not-sending/7664/13 "2017-02-27T14:00:47Z")

</div>

When the cron job ran, I got this message:

[SymfonyComponentConsoleExceptionRuntimeException]  
Too many arguments, expected arguments “command”.  
mautic:broadcasts:send [-c|–channel [CHANNEL]] [-i|–id [ID]] [-f|–force] [-t|–timeout TIMEOUT] [-h|–help] [-q|–quiet] [-v|vv|vvv|–verbose] [-V|–version] [–ansi] [–no-ansi] [-n|–no-interaction] [-s|–shell] [–process-isolation] [-e|–env ENV] [–no-debug] [–]

My cron job is:  
/usr/local/php56/bin/php-cli -q /home/theonls1/public\_html/ieltscharlie/go/app/console mautic:broadcasts:send [–id=25] [–channel=Emails]

I’m guessing remove the square brackets?

---

<div class="post-metadata">

**Author:** ![charlescorn](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/charlescorn/32/155_2.png) [@charlescorn](https://forum.mautic.org/u/charlescorn)\
**Post date:** [February 27, 2017, 2:09pm UTC](https://forum.mautic.org/t/emails-not-sending/7664/14 "2017-02-27T14:09:46Z")

</div>

I removed the square brackets. Now I’m getting this message when the cron job runs:

±--------±-------±---------+  
| Channel | # sent | # failed |  
±--------±-------±---------+

Is this good or bad news?

---

<div class="post-metadata">

**Author:** ![charlescorn](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/charlescorn/32/155_2.png) [@charlescorn](https://forum.mautic.org/u/charlescorn)\
**Post date:** [February 27, 2017, 2:15pm UTC](https://forum.mautic.org/t/emails-not-sending/7664/15 "2017-02-27T14:15:32Z")

</div>

Ok cheers, Thanks for trying.

---

<div class="post-metadata">

**Author:** ![charlescorn](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/charlescorn/32/155_2.png) [@charlescorn](https://forum.mautic.org/u/charlescorn)\
**Post date:** [March 5, 2017, 7:02am UTC](https://forum.mautic.org/t/emails-not-sending/7664/16 "2017-03-05T07:02:17Z")

</div>

OK, yet again I’ve had to solve my own problem through trial and error.

I had to reduce the number of emails to send in a batch. I had tried to send as a single batch, and also as a batch of 100 emails (the default). Today, as one last desperate stab in the dark (inspired by a related problem of another user), I sent the email in batches of 10. It started to send.

I can’t be the only user with this problem. So if you are having the same problem, with the emails stuck on all pending, zero sent., then cancel the send process, and reduce the batch number until it does send.

This might, of course, be a problem with my host (Siteground) or my SMTP server (Amazon SES), rather than Mautic. But it should still be pointed out in the Mautic documentation, so could one of the devs add this solution?

(I have tried myself to add something to Mautic documentation already, related to cron jobs, and got a submitted successfully message, but my edit never appeared.)

---

<div class="post-metadata">

**Author:** ![economichitman](https://avatars.discourse-cdn.com/v4/letter/e/c89c15/32.png) [@economichitman](https://forum.mautic.org/u/economichitman)\
**Post date:** [March 5, 2017, 12:13pm UTC](https://forum.mautic.org/t/emails-not-sending/7664/17 "2017-03-05T12:13:54Z")

</div>

I’m having the exact same problem yet I am unable to send no matter how low I set the batches I am running on 2.6.1 has there been any update on this?

---

<div class="post-metadata">

**Author:** ![charlescorn](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/charlescorn/32/155_2.png) [@charlescorn](https://forum.mautic.org/u/charlescorn)\
**Post date:** [March 5, 2017, 6:55pm UTC](https://forum.mautic.org/t/emails-not-sending/7664/18 "2017-03-05T18:55:39Z")

</div>

Just read this comment, after posting a ‘reduce batch size’ suggestion on your other post. Shame it didn’t work ☹ I feel your pain and frustration.

---

<div class="post-metadata">

**Author:** ![dannyogolo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dannyogolo/32/627_2.png) [@dannyogolo](https://forum.mautic.org/u/dannyogolo)\
**Post date:** [June 7, 2020, 10:28pm UTC](https://forum.mautic.org/t/emails-not-sending/7664/19 "2020-06-07T22:28:03Z")

</div>

I have same problem trying to send to 9000 emails. All pending  
But i sent to same 9000 the first day and after about 45 minutes delay, all were showing sent. That was to 1 segment. But this time, I am sending to 3 segments, but same number of emails.

How do i reduce the number of email in batches and try again ?  
I am in v2.16.2

---

<div class="post-metadata">

**Author:** ![namratasaun](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/namratasaun/32/2801_2.png) [@namratasaun](https://forum.mautic.org/u/namratasaun)\
**Post date:** [January 12, 2021, 10:17am UTC](https://forum.mautic.org/t/emails-not-sending/7664/20 "2021-01-12T10:17:06Z")

</div>

similar issue. any update?

[Next page](https://forum.mautic.org/t/emails-not-sending/7664.md?page=2)
