# Automatic emailing for template invoices

**URL:** <https://www.dolibarr.org/forum/t/automatic-emailing-for-template-invoices/19838>\
**Category:** CRM/SRM Modules\
**Tags:** Cron, Scheduled-Jobs\
**Created:** [November 25, 2020, 1:48pm UTC](https://www.dolibarr.org/forum/t/automatic-emailing-for-template-invoices/19838 "2020-11-25T13:48:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![StefanVanZyl](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/s/8491ac/32.png) [@StefanVanZyl](https://www.dolibarr.org/forum/u/StefanVanZyl)\
**Post date:** [November 25, 2020, 1:49pm UTC](https://www.dolibarr.org/forum/t/automatic-emailing-for-template-invoices/19838/1 "2020-11-25T13:49:00Z")

</div>

Hi there,  
I’m running Dolibarr 12.0.3 and want to set up a method for emailing my template invoices automatically once they are validated.  
At the moment I can’t find any functionality that does that, the closest being a script that emails a reminder about overdue invoices.  
Any help would be greatly appreciated.

Stefan Van Zyl

---

<div class="post-metadata">

**Author:** ![Dolisupport.nl](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/dolisupport.nl/32/3564_2.png) [@Dolisupport.nl](https://www.dolibarr.org/forum/u/Dolisupport.nl)\
**Post date:** [November 25, 2020, 4:35pm UTC](https://www.dolibarr.org/forum/t/automatic-emailing-for-template-invoices/19838/2 "2020-11-25T16:35:13Z")

</div>

Hello Stefan,

You can use one of the scripts here as a starting point : [https://github.com/Dolibarr/dolibarr/tree/develop/scripts/invoices](https://github.com/Dolibarr/dolibarr/tree/develop/scripts/invoices) or use the existing one in Dolibarr 12.0.3 compta/facture/class/facture-rec.class.php

Next, set the sceduled task with corresponding script and make use of the cronjobs schedule.

Kind regards,  
Hans
