• Hi, sometimes instead of attachments sending we are seeing something like this in the emails:

    
    0784944487/IMG-1115.jpg, 0599211239/IMG-1122.jpg, 1191933898/IMG-1116.jpg, 1794593121/IMG-1113.jpg, 0955159387/IMG-1112.jpg, 1230406824/IMG-1108.jpg, 0656485803/IMG-1107.jpg, 1539685167/3FADB423-3578-4094-85F3-2BFC4E12669F.jpg
    

    I will check php logs and mail logs but is this a symptom that you recognise with a quick fix? Or does it indicate what I should look for as the cause?

    We’re using latest plugin, WP & CF7.

    Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    Hello @andymacb

    Can you try and uncheck ‘send attachment as links’ option under Contact->drag n drop settings.

    Glen

    Thread Starter Andy Macaulay-Brook

    (@andymacb)

    Hi. It’s already unchecked. Andy.

    Thread Starter Andy Macaulay-Brook

    (@andymacb)

    I’ve been trying some tests, assuming that perhaps total image size is causing an issue. With three 14MB images I’m getting a red bordered CF7 generic “there was a problem, try later message. If I delete one image the form then sends.

    But I’m not easily reproducing the problem I described at the start. Just once after getting the error message from CF7 I waited, sent again, got a success message and the email was missing the attachments.

    I’m not seeing any PHP errors for these failures though.

    Thread Starter Andy Macaulay-Brook

    (@andymacb)

    Could there be something here to do with how the plugin clears up its files in the wpcf7_uploads directory?

    After a successful email I can see that the uploaded files are still on the server in that directory. After another email, the first set of files have gone. Could the problem I’m reporting be due to files being cleaned out too soon? Either when two people submit the form simultaneously, or when a form is resubmitted after a CF7 error?

    Just guessing based on what I have seen so far.

    And is there a setting or filter or hack I can use to keep the files on the server instead of deleting them? Then at least if an email arrives without them attached, I can manually retrieve them.

    • This reply was modified 5 years, 4 months ago by Andy Macaulay-Brook. Reason: Typo and also had additional thought as I sent
    Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    Hello andy,

    can you check and organise media folder by year. (https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcQA5Sb07B7N1ua8UvYmyN9HduuBXNL_NDUFSvdMDlvzc68DaGHQ)

    I’m currently on vacation, will fix and debug the issue when I get back to the city.

    Glen

    Thread Starter Andy Macaulay-Brook

    (@andymacb)

    Hi Glen, thanks.

    “Organize my uploads into month- and year-based folders” is already checked and has been all along.

    Sorry, didn’t realise you were away.

    Andy.

    Thread Starter Andy Macaulay-Brook

    (@andymacb)

    Hi Glen. I’ve found the issue. It’s Contact Form 7’s hard coded 60 second file cleanup.

    CF7 hooks onto template_redirect to run a temp file deletion routine and deletes anything over 60 seconds old. For some of the site users, the files are deleted before they submit the form. This apparently gives no error message on screen, in PHP logs or in the Exim mail agent logs (I run cPanel servers with Exim for sending mail and phpMailer calls Exim).

    So I’m going to mark this resolved. Thanks for looking at it though. Enjoy the vacation!

    Andy.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Uploaded files not sending. Email contains odd links.’ is closed to new replies.