# Task Scheduler - Mautic in Windows Sever

**URL:** <https://forum.mautic.org/t/task-scheduler-mautic-in-windows-sever/5799>\
**Category:** Product Support\
**Created:** [February 16, 2016, 1:26pm UTC](https://forum.mautic.org/t/task-scheduler-mautic-in-windows-sever/5799 "2016-02-16T13:26:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![thiegocarvalho](https://avatars.discourse-cdn.com/v4/letter/t/c57346/32.png) [@thiegocarvalho](https://forum.mautic.org/u/thiegocarvalho)\
**Post date:** [February 16, 2016, 1:26pm UTC](https://forum.mautic.org/t/task-scheduler-mautic-in-windows-sever/5799/1 "2016-02-16T13:26:28Z")

</div>

Hello Everyone  
  
I have Mautic in Windows Sever, now I need use Task Scheduler  
  
Someone have “How configuration this?”.  
  
  
  
Thanks!

---

<div class="post-metadata">

**Author:** ![koya](https://avatars.discourse-cdn.com/v4/letter/k/5daacb/32.png) [@koya](https://forum.mautic.org/u/koya)\
**Post date:** [March 28, 2016, 5:23pm UTC](https://forum.mautic.org/t/task-scheduler-mautic-in-windows-sever/5799/2 "2016-03-28T17:23:57Z")

</div>

Hi ,  
I am facing similar situation.  
My environment details are :  
version 1.3.1 , Windows 8 home, xampp…

I had no issues while installing process. However, when email-\>send example .  
Message is popped ‘A test email has been sent to your email.’ …  
And no mail is sent actually …!

when i try to send mail exclusively to one lead then following error is encountered.  
“Failed to send to [mymailid]@outlook.com: Sending failed for one or more recipients”

Any help would be highly appreciated.

Regards,

---

<div class="post-metadata">

**Author:** ![thiegocarvalho](https://avatars.discourse-cdn.com/v4/letter/t/c57346/32.png) [@thiegocarvalho](https://forum.mautic.org/u/thiegocarvalho)\
**Post date:** [March 28, 2016, 5:51pm UTC](https://forum.mautic.org/t/task-scheduler-mautic-in-windows-sever/5799/3 "2016-03-28T17:51:27Z")

</div>

U user a Sendgrid, S3? or SMTP?

---

<div class="post-metadata">

**Author:** ![koya](https://avatars.discourse-cdn.com/v4/letter/k/5daacb/32.png) [@koya](https://forum.mautic.org/u/koya)\
**Post date:** [March 28, 2016, 7:16pm UTC](https://forum.mautic.org/t/task-scheduler-mautic-in-windows-sever/5799/4 "2016-03-28T19:16:14Z")

</div>

I tried with gmail, sendmail , & phpmail . Nothing worked.  
used Configuration settings-\>Email setting to setup the email preferences.

I guess the problem is in the cron jobs setup and then the email settings.

Am first time Mautic user and very much new in field of marketing automation.  
Really need some quick insight on the issues.

---

<div class="post-metadata">

**Author:** ![thiegocarvalho](https://avatars.discourse-cdn.com/v4/letter/t/c57346/32.png) [@thiegocarvalho](https://forum.mautic.org/u/thiegocarvalho)\
**Post date:** [February 16, 2016, 1:26pm UTC](https://forum.mautic.org/t/task-scheduler-mautic-in-windows-sever/5799/5 "2016-02-16T13:26:28Z")

</div>

Hello Everyone  
I have Mautic in Windows Sever, now I need use Task Scheduler  
Someone have “How configuration this?”.

Thanks!

---

<div class="post-metadata">

**Author:** ![mobisolution](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@mobisolution](https://forum.mautic.org/u/mobisolution)\
**Post date:** [October 19, 2017, 5:57am UTC](https://forum.mautic.org/t/task-scheduler-mautic-in-windows-sever/5799/6 "2017-10-19T05:57:04Z")

</div>

Launch an elevated Windows command prompt.  
Run the following commands:  
schtasks /create /sc hourly /st 00:15 /tn mauticCronJob01 /tr “C:/xampp/php/php.exe C:/xampp/htdocs/mautic/app/console mautic:segments:update --env=prod” /ru “System”  
schtasks /create /sc hourly /st 00:20 /tn mauticCronJob02 /tr “C:/xampp/php/php.exe C:/xampp/htdocs/mautic/app/console mautic:campaigns:rebuild --env=prod” /ru “System”  
schtasks /create /sc hourly /st 00:25 /tn mauticCronJob03 /tr “C:/xampp/php/php.exe C:/xampp/htdocs/mautic/app/console mautic:campaigns:trigger --env=prod” /ru “System”  
schtasks /create /sc hourly /st 00:30 /tn mauticCronJob04 /tr “C:/xampp/php/php.exe C:/xampp/htdocs/mautic/app/console mautic:messages:send --env=prod” /ru “System”  
schtasks /create /sc hourly /st 00:35 /tn mauticCronJob05 /tr “C:/xampp/php/php.exe C:/xampp/htdocs/mautic/app/console mautic:emails:send --env=prod” /ru “System”  
schtasks /create /sc hourly /st 00:40 /tn mauticCronJob06 /tr “C:/xampp/php/php.exe C:/xampp/htdocs/mautic/app/console mautic:email:fetch --env=prod” /ru “System”  
schtasks /create /sc hourly /st 00:40 /tn mauticCronJob07 /tr “C:/xampp/php/php.exe C:/xampp/htdocs/mautic/app/console mautic:social:monitoring --env=prod” /ru “System”  
schtasks /create /sc hourly /st 00:45 /tn mauticCronJob08 /tr “C:/xampp/php/php.exe C:/xampp/htdocs/mautic/app/console mautic:webhooks:process --env=prod” /ru “System”

WWW.DVMS.VN
