# Emails not sending

**URL:** <https://forum.mautic.org/t/emails-not-sending/3292>\
**Category:** Product Support\
**Created:** [January 23, 2016, 3:57am UTC](https://forum.mautic.org/t/emails-not-sending/3292 "2016-01-23T03:57:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![eiwstar](https://avatars.discourse-cdn.com/v4/letter/e/5f8ce5/32.png) [@eiwstar](https://forum.mautic.org/u/eiwstar)\
**Post date:** [January 23, 2016, 3:57am UTC](https://forum.mautic.org/t/emails-not-sending/3292/1 "2016-01-23T03:57:07Z")

</div>

Hi,  
  
  
  
I have a form on my website and when submitted it adds the lead but does not send the email. I’ve read through the forum questions that are similar, checked my campaign and I just can’t see what’s wrong. Sending an example and an email directly to the lead works fine. One time it sent the email but it sent it to my email and not the leads. I think it may have something to do with the same IP but I really don’t understand it–I am the one submitting the form but I’m using different email addresses. The lead shows the correct email address but it doesn’t send the email. So I can’t submit test forms from the same IP? Is that it? Sorry, if this is asking something that’s already been asked but I did look at questions on the forum and I still don’t get it.  
  
  
  
**Also, I do have some things in the error log:** [2016-01-23 00:00:08] mautic.ERROR: DoctrineDBALDBALException: An exception occurred while executing ‘SELECT max(list\_leads.lead\_id) as max\_id, count(distinct(list\_leads.lead\_id)) as lead\_count FROM lead\_lists\_leads list\_leads WHERE (list\_leads.manually\_removed = ?) AND (list\_leads.leadlist\_id IN ()) AND (list\_leads.date\_added \<= ‘2016-01-23 00:00:08’) AND (NOT EXISTS (SELECT null FROM campaign\_leads campaign\_leads WHERE (campaign\_leads.lead\_id = list\_leads.lead\_id) AND (campaign\_leads.manually\_removed = ?) AND (campaign\_leads.campaign\_id = 1)))’ with params [0, 0]: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')) AND (list\_leads.date\_added \<= ‘2016-01-23 00:00:08’) AND (NOT EXISTS (SELECT ’ at line 1 (uncaught exception) at /home1/wolf/public\_html/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php line 91 while running console command `mautic:campaigns:update` [] []  
  
  
  
thanks for any help! I’m getting a little frustrated…  
  
  
  
Diane

---

<div class="post-metadata">

**Author:** ![eiwstar](https://avatars.discourse-cdn.com/v4/letter/e/5f8ce5/32.png) [@eiwstar](https://forum.mautic.org/u/eiwstar)\
**Post date:** [January 23, 2016, 3:57am UTC](https://forum.mautic.org/t/emails-not-sending/3292/2 "2016-01-23T03:57:07Z")

</div>

Hi,

I have a form on my website and when submitted it adds the lead but does not send the email. I’ve read through the forum questions that are similar, checked my campaign and I just can’t see what’s wrong. Sending an example and an email directly to the lead works fine. One time it sent the email but it sent it to my email and not the leads. I think it may have something to do with the same IP but I really don’t understand it–I am the one submitting the form but I’m using different email addresses. The lead shows the correct email address but it doesn’t send the email. So I can’t submit test forms from the same IP? Is that it? Sorry, if this is asking something that’s already been asked but I did look at questions on the forum and I still don’t get it.

Also, I do have some things in the error log: [2016-01-23 00:00:08] mautic.ERROR: DoctrineDBALDBALException: An exception occurred while executing ‘SELECT max(list\_leads.lead\_id) as max\_id, count(distinct(list\_leads.lead\_id)) as lead\_count FROM lead\_lists\_leads list\_leads WHERE (list\_leads.manually\_removed = ?) AND (list\_leads.leadlist\_id IN ()) AND (list\_leads.date\_added \<= ‘2016-01-23 00:00:08’) AND (NOT EXISTS (SELECT null FROM campaign\_leads campaign\_leads WHERE (campaign\_leads.lead\_id = list\_leads.lead\_id) AND (campaign\_leads.manually\_removed = ?) AND (campaign\_leads.campaign\_id = 1)))’ with params [0, 0]: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')) AND (list\_leads.date\_added \<= ‘2016-01-23 00:00:08’) AND (NOT EXISTS (SELECT ’ at line 1 (uncaught exception) at /home1/wolf/public\_html/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php line 91 while running console command `mautic:campaigns:update` [] []

thanks for any help! I’m getting a little frustrated…

Diane

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [January 25, 2016, 11:55am UTC](https://forum.mautic.org/t/emails-not-sending/3292/3 "2016-01-25T11:55:05Z")

</div>

Hi,

no need to get frustrated. If you’d try to google the error message, you’d get to the fix:

[https://github.com/mautic/mautic/pull/1286](https://github.com/mautic/mautic/pull/1286)

The new Mautic 1.2.4 with this fix should be released very soon.

---

<div class="post-metadata">

**Author:** ![eiwstar](https://avatars.discourse-cdn.com/v4/letter/e/5f8ce5/32.png) [@eiwstar](https://forum.mautic.org/u/eiwstar)\
**Post date:** [January 25, 2016, 7:48pm UTC](https://forum.mautic.org/t/emails-not-sending/3292/4 "2016-01-25T19:48:53Z")

</div>

Ok, thanks. I did google it and returned no results; Google must not find github stuff; or it didn’t in this case. Hope it’s out soon, anxious to move forward. Thanks again! I appreciate your help. Always glad to know it’s not user error 🙂

Diane
