Wordpress contacts plugin with attachments

My site requires contacts form which allow users to attach files with messages. I was using very good plugin by Ryan Wp-ContactForm for a long time but it doesn’t support file attachments.

As I understood from searching on google many people need same thing on their sites. So, I decided to hack Ryan’s version and add attachments feature.

Please note: This is temporal hack because I’m sure Ryan will add same functionality in next versions. Also, all credits should go to the original plugin author because my hack is only 15 php strings.

This hack doesn’t provide any additional options in to admin panel. But you can setup the maximum size of attached files:

Go to wp-contactform.php and change the value of $attachment_max_size parameter. Note: it should be set in KB.

I have add 3 file upload fields, but you can change their number. Just go to wp-contactform.php, file fields starting from line 214. Simply add or remove them. Do not forgot to setup different NAME attribute for every field you add.


Wp-ContactForm with attachments addon


Just upload to /plugins/ folder and activate.


Create a post or a page and press the Contact Form quicktag where you want the form to be. If you don’t see the Contact Form quicktag, you can alternatively copy and paste <!–contact form–> where you want it to appear.

For more information about original plugin and installation help go to Ryan’s page.

P.S. Don’t have time for fixes, so, I just archived the version from my server which works fine.

del.icio.us:Wordpress contacts plugin with attachments digg:Wordpress contacts plugin with attachments spurl:Wordpress contacts plugin with attachments wists:Wordpress contacts plugin with attachments simpy:Wordpress contacts plugin with attachments newsvine:Wordpress contacts plugin with attachments blinklist:Wordpress contacts plugin with attachments furl:Wordpress contacts plugin with attachments reddit:Wordpress contacts plugin with attachments fark:Wordpress contacts plugin with attachments blogmarks:Wordpress contacts plugin with attachments Y!:Wordpress contacts plugin with attachments smarking:Wordpress contacts plugin with attachments magnolia:Wordpress contacts plugin with attachments segnalo:Wordpress contacts plugin with attachments

16 Responses to “Wordpress contacts plugin with attachments”

  1. Easton Says:

    Does anyone know the name of the wordpress plugin that creates a list of your posts in a category instead of just displaying them one after the other? I want it so that when someone clicks on a category they just get a list of posts from that category.

    I'm sure Ive seen one…and sifting through the WP site is a nightmare

  2. Chris Says:


    I added the form and it sends the email to my email with attachments fine except there is no message in the email, just the attachements.

    Any ideas??

  3. aaheroe Says:

    yes this plugin only delivery image.. text message not delivered.. please fix it .. i need this plugin

    thank you

  4. deco Says:

    would be nice to have a kind of chaptcha image verification feature…
    any idea on how ot implement it?

  5. Maximilian Says:

    What I want to do on my blog, is every few hours take the oldest post and move it to the
    front of the queue, all automatically. Anyone know if there is a plugin that can do this or
    a simple way to set up another plugin to do this (use my own feed perhaps)?

  6. Ron Says:

    I have the same problem. Attachment received but no text.

    Can more “user-defined” fields be added?

  7. Jon S Says:

    I’m having the same problem. I found a hack though, but it’s really lame. If you’re using gmail, and running Firefox, when you receive the message click on the options icon in the upper right of the message window. Choose to see the original email(I think that’s what it was called). It shows this long page full of code. At the top of it, if you skim it, you’ll see the message and additional data in there. It’s not how I’d want to receive it, but this is the only plugin I’ve seen that offers image uploads plus form data. Oh well. Hope the author can sort it out a little.

  8. garrick van buren Says:

    looks like the issue is w/ the MIME-BOUNDRY, once I changed them to all be the same, the plugin worked for me.

  9. gitano Says:

    I try to use your plugin with modification attachment file, but i receve image only when i attach more than one image, the first one inserted has always problem to be codificated like image. Yuo know if there is something wrong in the code? Thank you.

  10. Mitch Says:

    This is what i was searching for ages.

  11. Filip Says:

    Could anybody explain to me in laymen terms how I can fix the problem with the text not being sent? This plugin is exactly what I was looking for… Tnx in advance.

  12. tricky al dia » Wordpress Contact Form with Attachments Fixed Says:

    […] In the Wordpress support forums i saw a thread about a contact form with attachments plugin. Looking at its website (this plugin is based on Ryan Duff’s WPContact Form), i found that some people are having trouble running it and i read that someone gave a solution to it, so i fixed it and it’s available for download in case anyone needs it. […]

  13. tricky Says:


    I incorporated the fix suggested by Garrick van Buren, and it works fine. It’s available for download here. In case anyone wonders, all the MIME boundaries need to be exactly the same, so the mail client knows where to split the message and display the text and each picture.

  14. Great work, thanks. Says:

    Great work, thanks.

    Top work

  15. JS Says:

    Not sure if you are checking this…I tried to use your contact form but it kept asking for req fields that I had filled in.
    That form is exactly what I need. When I go to install your plugin, because a later version of the Ryan’s plugin exists, yours gets over-written. Any suggestions?

  16. adreas Says:

    thanks it works great!!!!!
    good job!

Leave a Reply