POP3 emails not deleted, results in hunderds of send e-mails


Home Forums Front End PM PRO POP3 emails not deleted, results in hunderds of send e-mails

This topic is: Not Resolved
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #30122
    Rijo Verburg
    Participant

    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.

    #30129
    Shamim Hasan
    Keymaster

    1. 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?

    #30131
    Rijo Verburg
    Participant

    1. 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

    #30135
    Shamim Hasan
    Keymaster

    Can 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?

    #30137
    Rijo Verburg
    Participant

    I’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?

    #30140
    Rijo Verburg
    Participant

    And 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.

    #30143
    Shamim Hasan
    Keymaster

    can you send me the error you are getting?

    #30145
    Rijo Verburg
    Participant
    This reply has been marked as private.
    #30148
    Shamim Hasan
    Keymaster

    I 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.

    #30150
    Rijo Verburg
    Participant

    I 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.

    #30153
    Shamim Hasan
    Keymaster

    This 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(){
        }
    }
    
    #30155
    Rijo Verburg
    Participant

    Great, thanks for the tip!

Viewing 12 posts - 1 through 12 (of 12 total)

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.