Sending eMails with CronJob |
01-12-2019, 05:53 PM
(This post was last modified: 01-12-2019, 07:16 PM by VK4JE. Edit Reason: more detail ) (01-11-2019, 06:18 AM)php_rocs Wrote: @VK4JE, Yes it is, I tried to post it here, but the post was denied. I will try to add it as a zip file. The full story is: In an effort to send a remember email stating that the Membership Package will expire in 7, 5, 3, 1 days The current issues with coding Start at Line 1267 and End Line 1632 I have added new columns to the Database for users "data_expire_7_sent" "data_expire_5_sent" "data_expire_3_sent" "data_expire_1_sent" data_expire_package_sent I have added new eMails for each I have followed the Developers lead with the coding for data_expire_package_sent The correct eMails are sent, the date is filled into the correct database field, however My additional 7, 5, 3, 1 days emails continue to be sent every time the cronjob runs until data_expire_package_sent cronjob runs and completes, then they all stop. The objective is to send only one eMail to the $user and admin as each expiry date is reached. The issue are: Multiple 7, 5, 3, 1 emails (new one send every cronjob run) until data_expire_package_sent runs No emails are ever sent to $user Cheers Ron
Cheers
Ron |
Messages In This Thread |
Sending eMails with CronJob - by VK4JE - 01-10-2019, 11:52 PM
RE: Sending eMails with CronJob - by php_rocs - 01-11-2019, 06:18 AM
RE: Sending eMails with CronJob - by VK4JE - 01-12-2019, 05:53 PM
RE: Sending eMails with CronJob - by php_rocs - 01-14-2019, 07:56 AM
RE: Sending eMails with CronJob - by php_rocs - 01-14-2019, 08:04 AM
RE: Sending eMails with CronJob - by VK4JE - 01-14-2019, 03:13 PM
RE: Sending eMails with CronJob - by php_rocs - 01-14-2019, 08:00 PM
RE: Sending eMails with CronJob - by VK4JE - 01-14-2019, 11:32 PM
RE: Sending eMails with CronJob - by VK4JE - 01-16-2019, 01:25 PM
RE: Sending eMails with CronJob - by php_rocs - 01-16-2019, 09:03 PM
|