Home › Forums › Front End PM PRO › POP3 emails not deleted, results in hunderds of send e-mails
- This topic has 11 replies, 2 voices, and was last updated 6 years, 2 months ago by Rijo Verburg.
- AuthorPosts
- October 14, 2019 at 12:36 pm #30122Rijo VerburgParticipant
Hello Shamim,
Last couple of week an serious error occured two times. The messages that were in our POP3 email inbox weren’t deleted, but they were send as a message to the user.
Because our cronjob runs every minute, the messages that were in the inbox are sent over 800 times..
Any idea what causes this or how we can prevent this?
Thanks.
October 14, 2019 at 7:53 pm #30129Shamim HasanKeymaster1. Normally how many message emails your website receive per minute?
2. was that happening for single message or multiple messages?
3. How much was the size of that message? any difference in that message with other messages?
4. It may possible that in 1 minute message process is not completed. Can you set as 5 minutes instead of 1 minute cron so that multiple imap connection is not open?October 14, 2019 at 8:08 pm #30131Rijo VerburgParticipant1. It depends but the max is around 20 per hour (which is not that often).
2. I think it was caused by one message and every message after that also stayed in the inbox. That one message contained PDF attatchements (maybe it’s a clue for the problem).
3. The attachments combined were 4,6MB
4. I’ve set it to 5 minutes now just to be sure, but it has worked for months with a 1 minute cronjob
October 14, 2019 at 9:36 pm #30135Shamim HasanKeymasterCan you reply a test message email with those pdf attached and see if that working?
Also please check your server error log if there any error there?October 14, 2019 at 10:30 pm #30137Rijo VerburgParticipantI’ve tested with the same attachements and this time it worked.
I check the logs and I do see one fatal error during that time that kept repeating every minute, but it’s not related to Front End PM. Could this still be the cause?
October 14, 2019 at 10:36 pm #30140Rijo VerburgParticipantAnd is there a function to pause the FEP_POP_3 cronjob when there’s a fatal error? Because this can happen again in the future and when it’s at night, the cronjob will run the whole night without me noticing it.
Thanks.
October 14, 2019 at 11:04 pm #30143Shamim HasanKeymastercan you send me the error you are getting?
October 14, 2019 at 11:17 pm #30145Rijo VerburgParticipantThis reply has been marked as private.October 14, 2019 at 11:49 pm #30148Shamim HasanKeymasterI do not know how this error even possible. Did you declare this function inside another function?
You can wrap this function inside function_exists call so that this error never happen.
This error also can be issue for email not deleted, But as i cannot see full code, i cannot be sure. But any fatal error can create that issue. Please wrap that function inside function_exists and see if working.October 14, 2019 at 11:56 pm #30150Rijo VerburgParticipantI think I’ve declared the same function somewhere else, outside the functions.php file. I’ve changed it so let’s hope it won’t happen again.
I’ve also activated an e-mail notification in case of a fatal error.
Thanks for your help.
October 15, 2019 at 12:12 am #30153Shamim HasanKeymasterThis is a same line error which means you did not declare in any other places. Better approach will be to declare inside function_exists. eg.
if ( ! function_exists( 'my_simple_crypt' ) ) { function my_simple_crypt(){ } }October 15, 2019 at 12:20 am #30155Rijo VerburgParticipantGreat, thanks for the tip!
- AuthorPosts
You need to purchase ‘Front End PM PRO’ to create topic in this support forum.
If you already purchased ‘Front End PM PRO’ please LOGIN.