Commit Graph

31 Commits

Author SHA1 Message Date
johnnyq 34b94af965 Copied the cron scripts from /script dir back to / and updated all require pathes 2025-01-29 12:32:45 -05:00
johnnyq d5a03d3afc remove cron key from the code and remove old cron script and setup and update cli scripts as they now reside in scripts directory 2025-01-25 21:44:46 -05:00
johnnyq 278ba079c3 Updated cron mail queue and cron email ticket parser to use new logAction and tidy up code 2024-11-15 13:40:04 -05:00
johnnyq 01c9e8604f Updated the cron php script to use app notify removed the _esc from ids in cron ticket email parser as ids are always escaped as ints 2024-11-07 12:30:07 -05:00
wrongecho 517e8d42f0 Email Send - Tidy
- Enhance error logging in cron_mail_queue.php
- Prevent invalid sender addresses
- Prevent potential SQL injections in the sender name (admin settings and should be sanitized before being sent to queue anyway)
2024-09-10 22:34:20 +01:00
johnnyq 888552724a Set Timezone in all places and it needs to be set in and sperated it into a seperate include 2024-04-17 12:53:11 -04:00
johnnyq 5266f126cb Set Timezone in the CRON files as well as the command line PHP doesn't always respect the system timezone 2024-03-21 14:55:54 -04:00
Marcus Hill 1e8fbddcbd Mail queue & tickets
- Allow cancelling emails
- Adjust wording of ticket scheduling emails
2024-02-24 11:06:55 +00:00
johnnyq 3374a7042a Revert Mail Queue Query Change, update the db structure to include new fields 2024-02-10 14:34:34 -05:00
o-psi 2bf0a2aef8 cleanups 2024-02-09 22:49:12 +00:00
o-psi b3df9fc9f6 Fix email for iCal 2024-02-08 14:16:27 -06:00
o-psi e2392c3c6c Add iCal functionality 2024-02-08 12:59:36 -06:00
johnnyq ad1ec7d338 Allow to set an optional queue time in bulk mail, update cron_mail_queue.php to only send mail after its queued_at date and time 2024-01-21 15:52:15 -05:00
johnnyq 289031b691 Updated Cron Mail Queuer - Removed HTMLPurify and HTML Encoding using HTMLEntities as these are unnessaery and were cuasing extra cpu load and possible data corruption and are passed off to PHPMailer which handles this by default plus recipient email clients should handle XSS as well 2024-01-19 17:39:28 -05:00
johnnyq 9559c11c25 Cleaned up the initial create ticket email, removed customization for now, added some better comments to cron mailer etc 2024-01-19 17:28:17 -05:00
johnnyq 5c0ab72d69 Moved creating lock file after all other checks have passed to prevent locking if a certian check has not passed, turned off imap extend log as it could cause mysql errors also remove lock before exiting if cannnot connect to imap 2023-11-01 13:59:35 -04:00
johnnyq 3c8a026b7c Fixed Cron mail queue and email parser missing ' 2023-10-27 13:05:29 -04:00
johnnyq f9d3d3b2f9 Also Added logging to cron mail queue and mail parser when attempting to execute when its already executing by checking to see if the lock file is present 2023-10-25 18:05:19 -04:00
johnnyq c30e0f7768 Remove Lock files older than 10 Mins aka 600 Secs and log it for Cron Email Parser and Cron Mail Queue 2023-10-25 17:57:35 -04:00
o-psi 53c11edc8c Update constructs to not have parenthesis. 2023-10-20 15:25:52 -05:00
johnnyq 65cf8519d0 Added file locks on the mail queue and ticket parse cron jobs to prevent over runs, reverted last commit back to not marking all messages in ticket parse as read 2023-09-19 10:51:52 -04:00
johnnyq 3d5c09abd0 Added a mail resend option under mail queuer it reset the the failed count to 3 2023-09-07 19:31:18 -04:00
johnnyq 9baf64964a Fixed Umlaughts in email subject with the new Mail Queue System 2023-07-06 15:25:10 -04:00
johnnyq 4d90327c79 Created Mail Queue Logs / Viewer in settings, enabled manual send invoice to use the new queue system, now it logs the Email ID so you can reference it in the Queue to see if it sent, also do not send mail to blank billing contact emails 2023-06-21 12:09:32 -04:00
johnnyq c6afe0b3cf Removed uneeded logging with the mail queue start and end logs 2023-06-20 20:50:55 -04:00
johnnyq 53f05a9469 Update the email status to sending before actually sending to prevent duplicate or more 2023-06-20 20:45:10 -04:00
johnnyq 63100d7cee Remove unessessary date vars and re-enable cron key check for the new cron mailer 2023-06-20 20:37:20 -04:00
johnnyq 8b372c20e0 Update new cron email queuer script to resend failed mail every 30 mins for each failed attempt up 4 attempts 2023-06-20 20:34:29 -04:00
johnnyq 05f41d1798 Update email sent at field only if the email was sent 2023-06-20 19:37:42 -04:00
johnnyq 6f0505d7e9 cron process mail queue created, now need to convert some of the code over to use the new mail queuer system 2023-06-20 19:34:34 -04:00
johnnyq d1876e829c Added asset description to the API for create and update 2023-06-19 16:34:44 -04:00