Hello,
A little over a year ago, I created template invoices that automatically generate validated invoices through the scheduled task “Generate recurring invoices (sales)” and then send an email (with the invoice attached) to the respective client using the template “SendRecurringInvoiceByMail.” All of this was accomplished without any specific code.
I recently changed hosting providers and proceeded with the migration of my Dolibarr. Everything seemed to work well until I noticed that the automatic email sending of validated invoices is no longer functioning.
I started investigating and noticed that I no longer have access to the “Email Sending” page for each template invoice. I checked the “custom\sendrecurringinvoicebymail” directory in my new Dolibarr installation, and it was empty. Therefore, I have copied all files and directories from my old instance to the new one. This allowed me to regain access to the “Email Sending” page (see attachment). However, the problem is not resolved; the email still does not go out with the attached invoice, as it has been working for over a year now.
I tested other email sending, and everything works, so it’s not an issue with my SMTP server, and the invoices are generated correctly by the job.
I’m wondering if I made the right choice by simply copying the files from the “sendrecurringinvoicebymail” directory from my old instance to the new one, or if there’s a different process I should have followed.
Thank you in advance for your assistance.
Best regards,