# 1st email not sent

**URL:** <https://forum.mautic.org/t/1st-email-not-sent/3333>\
**Category:** Product Support\
**Created:** [January 27, 2016, 6:12pm UTC](https://forum.mautic.org/t/1st-email-not-sent/3333 "2016-01-27T18:12:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![chawen](https://avatars.discourse-cdn.com/v4/letter/c/c57346/32.png) [@chawen](https://forum.mautic.org/u/chawen)\
**Post date:** [January 27, 2016, 6:12pm UTC](https://forum.mautic.org/t/1st-email-not-sent/3333/1 "2016-01-27T18:12:43Z")

</div>

I am still trying to get mautic to send first message as I tried using my hosting ( hostmonister ) sendmail. php and tried gmail and SendGrid, all don,t get the command from mautic to send the first email using single opt in or double opt in, I am using template form. I can’t find the spool directory in mautic and need help to find out why mautic is not working. I tried mautic from mautic website and it worked first them it was very slow in sending the newsletter emails . Please if any body has a sequence check up that I can follow to find out where mautic signal stop. I am sure that my hosting server is working efficiently as far as send emails as I am using many web email accounts of three domains . I tried another domain but still the same problem exist. I wish mautic senior developers investigate this problem . I am really impressed by mautic software but hasn’t the chance to investigate it further since the first step which is sending the confirmation email does not work. I appreciate if any body has the right procedure to check and solve this problem, I read many mautic users suffer from fault.

---

<div class="post-metadata">

**Author:** ![chawen](https://avatars.discourse-cdn.com/v4/letter/c/c57346/32.png) [@chawen](https://forum.mautic.org/u/chawen)\
**Post date:** [January 27, 2016, 6:12pm UTC](https://forum.mautic.org/t/1st-email-not-sent/3333/2 "2016-01-27T18:12:43Z")

</div>

I am still trying to get mautic to send first message as I tried using my hosting ( hostmonister ) sendmail. php and tried gmail and SendGrid, all don,t get the command from mautic to send the first email using single opt in or double opt in, I am using template form. I can’t find the spool directory in mautic and need help to find out why mautic is not working. I tried mautic from mautic website and it worked first them it was very slow in sending the newsletter emails . Please if any body has a sequence check up that I can follow to find out where mautic signal stop. I am sure that my hosting server is working efficiently as far as send emails as I am using many web email accounts of three domains . I tried another domain but still the same problem exist. I wish mautic senior developers investigate this problem . I am really impressed by mautic software but hasn’t the chance to investigate it further since the first step which is sending the confirmation email does not work. I appreciate if any body has the right procedure to check and solve this problem, I read many mautic users suffer from fault.

---

<div class="post-metadata">

**Author:** ![dbhurley](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dbhurley/32/2_2.png) [@dbhurley](https://forum.mautic.org/u/dbhurley)\
**Post date:** [January 27, 2016, 8:34pm UTC](https://forum.mautic.org/t/1st-email-not-sent/3333/3 "2016-01-27T20:34:16Z")

</div>

I can’t do too much troubleshooting right this minute, but I wonder if you’ve setup the cron jobs to actually process the campaigns and email sends? Be sure to check here:  
[https://www.mautic.org/getting-started/](https://www.mautic.org/getting-started/)

---

<div class="post-metadata">

**Author:** ![chawen](https://avatars.discourse-cdn.com/v4/letter/c/c57346/32.png) [@chawen](https://forum.mautic.org/u/chawen)\
**Post date:** [January 27, 2016, 10:14pm UTC](https://forum.mautic.org/t/1st-email-not-sent/3333/4 "2016-01-27T22:14:08Z")

</div>

[quote=7768:@dbhurley]I can’t do too much troubleshooting right this minute, but I wonder if you’ve setup the cron jobs to actually process the campaigns and email sends? Be sure to check here:  
[https://www.mautic.org/getting-started/[/quote]](https://www.mautic.org/getting-started/%5B/quote%5D)

Yes the cron jobs have been set up as recommended by mautic documentation and I have actually installed mautic many times on more than one domain and get the same result, unable to send automatically the first email but able to send manually emails to subscriber whom I add manually to leads list.

---

<div class="post-metadata">

**Author:** ![chawen](https://avatars.discourse-cdn.com/v4/letter/c/c57346/32.png) [@chawen](https://forum.mautic.org/u/chawen)\
**Post date:** [January 28, 2016, 2:02am UTC](https://forum.mautic.org/t/1st-email-not-sent/3333/5 "2016-01-28T02:02:24Z")

</div>

upon checking mautic/app/error\_log, I have error " 27-Jan-2016 15:46:01] PHP Parse error: syntax error, unexpected T\_STRING, expecting T\_CONSTANT\_ENCAPSED\_STRING or ‘(’ in /home1/homebux8/public\_html/mautic/app/console on line 18" . I opened console file but couldn’t find it, are we suppose to count blank lines or not. Any help is much appreciated.

---

<div class="post-metadata">

**Author:** ![danthemaverick](https://avatars.discourse-cdn.com/v4/letter/d/7feea3/32.png) [@danthemaverick](https://forum.mautic.org/u/danthemaverick)\
**Post date:** [July 19, 2016, 4:19pm UTC](https://forum.mautic.org/t/1st-email-not-sent/3333/6 "2016-07-19T16:19:52Z")

</div>

Make sure you are updated to PHP version 5.3+. I was getting similar errors when I was running a pre-5.2 version.

Even after I updated, I was having trouble running stored .php commands, so I set them up to run directly in the cron job.

i.e. instead of creating a .php file and telling the cron job to access the file, I simply inserted the console commands directly into the cron job

Example: \*/15 \* \* \* \* /usr/bin/php /path/to/mautic/app/console mautic:emails:send

Instead of doing: \<?php path/to/mautic/app/console mautic:emails:send; ?\> store to emailqueue.php  
\*/15 \* \* \* \* /usr/bin/php /path/to/localdirectory/emailqueue.php

Just set this and haven’t tested any emails, so we’ll find out soon how it works
