• Resolved Jack All

    (@jack-all)


    Hi,

    First of all, thanks for your wonderful plugin!

    Question: Using Contact Form 7 with the upload file field active, the mail and attachment is sent and delivered, but the attachment does not show in WP email log screen.
    Am I doing something wrong?

    Kind regards,
    Jack.

    ps. using all latest versions and plugins up-to-date.

    https://wordpress.org/plugins/wp-mail-logging/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi Jack All,

    thank you very much for the feedback.

    The attachments feature works for files that are uploaded via WordPress Core Media Uploader only. It should say “Attachment %s is not present” at least in the attachment column!?

    I used https://wordpress.org/plugins/quick-mail/ to implement/test this feature, I guess.

    I don’t have much time to do this right now but everyone is welcome to contribute.
    https://github.com/No3x/wp-mail-logging
    https://github.com/No3x/wp-mail-logging/issues/34

    Thread Starter Jack All

    (@jack-all)

    Hi no3x,

    Thanks for your quick answer. The only thing showing in that column when an attachment was uploaded, is “x”, not the name.
    If no attachment is uploaded at all, there’s no x and the column is empty.

    For now I’m able to see if there was an attachment or not, and that’s enough for me.

    Thanks again, regards,

    Jack.

    Hi Jack All,

    I looked into this and noticed that Contact Form 7 does not attach the files to the mail (mail header) automatically.

    But you can do so:
    http://contactform7.com/file-uploading-and-attachment/

    So I added the tag to “File Attachments” as described and everything works fine.

    Kind Regards
    No3x

    Please rate!

    Thread Starter Jack All

    (@jack-all)

    Thanks for your time no3x,

    As I mentioned in my first post, this is what I’ve configured already. And the mail is being sent correctly with attachment. So that works fine.

    I still only see a cross in the mail list log. When a user does not upload a file there’s no cross in the mail list log. Mark the difference.

    Am I still missing something?

    Regards, Jack.

    You see an x if the path to the file is not valid.
    There is no icon if there was no attachment – this is ok and not the problem – right?

    So you could check that path by looking into the database table’s attachment column. (In my case the content is e.g. /uploads/wpcf7_uploads/1081872618/icon-128×128.png)

    I’m able to reproduce this by changing the attachment path to an invalid path:
    /uploads/wpcf7_uploads/0187938481/icon-128x128.png,\n/uploads/wpcf7_uploads/0058494489/icon-26x256.png directly in the database.
    (I replaced the first 5 of the second file name with x)

    Are you sending multiple files at once? (also works fine for me)

    Hi Jack,

    I just found out that

    After a user uploads a file through your contact form, Contact Form 7 checks to see if: 1.) Any PHP errors have occurred; 2.) the file type and file size are valid; and then, if the check turns out okay, Contact Form 7 moves the uploaded file to a temporary folder. At this point, Contact Form 7 attaches the file to the mail and sends it. After these procedures, Contact Form 7 then removes the file from the temporary folder.

    http://contactform7.com/file-uploading-and-attachment/

    So Contact Form 7 is incompatible with this feature. An adaptation would be required to copy the file to uploads or so for persistence.
    I’m not sure why Contact Form 7 did not delete this file in my dev environment. Maybe it’s a dev feature of Contact Form 7.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Using Contact Form 7’ is closed to new replies.