Title: Using Contact Form 7
Last modified: August 31, 2016

---

# Using Contact Form 7

 *  Resolved [Jack All](https://wordpress.org/support/users/jack-all/)
 * (@jack-all)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/using-contact-form-7/)
 * 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/](https://wordpress.org/plugins/wp-mail-logging/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [No3x](https://wordpress.org/support/users/no3x/)
 * (@no3x)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/using-contact-form-7/#post-6924019)
 * 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/](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)
   [https://github.com/No3x/wp-mail-logging/issues/34](https://github.com/No3x/wp-mail-logging/issues/34)
 *  Thread Starter [Jack All](https://wordpress.org/support/users/jack-all/)
 * (@jack-all)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/using-contact-form-7/#post-6924037)
 * 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.
 *  [No3x](https://wordpress.org/support/users/no3x/)
 * (@no3x)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/using-contact-form-7/#post-6924115)
 * 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/](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](https://wordpress.org/support/users/jack-all/)
 * (@jack-all)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/using-contact-form-7/#post-6924116)
 * 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.
 *  [No3x](https://wordpress.org/support/users/no3x/)
 * (@no3x)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/using-contact-form-7/#post-6924117)
 * 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](http://s17.postimg.org/zb3tvyi8v/Bildschirmfoto_2016_01_13_um_22_06_46.png):
   `/
   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)
 *  [No3x](https://wordpress.org/support/users/no3x/)
 * (@no3x)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/using-contact-form-7/#post-6924207)
 * 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/](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.

 * ![](https://ps.w.org/wp-mail-logging/assets/icon-256x256.jpg?rev=2562296)
 * [WP Mail Logging](https://wordpress.org/plugins/wp-mail-logging/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-mail-logging/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-mail-logging/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-mail-logging/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-mail-logging/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-mail-logging/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [No3x](https://wordpress.org/support/users/no3x/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/using-contact-form-7/#post-6924207)
 * Status: resolved