SB Mail Attachment Widget

December 5th, 2011 by Sean Leave a reply »

Ever wanted to use a simple contact form for your site where people can attach a file? Well I did for a recent project of mine. We wanted people to be able to apply for jobs whilst keeping the site very simple. Each post linked to a job and the consultant responsible for the job was set as the post author. Using a plugin like Contact Form 7 or Gravity Forms we thought we would be able to make up a form that people could fill in and, depending on the author of the post/page it’s on, send the email to one of many recipients.

Simple right using one of those bulky and, sometimes, advanced plugins? No…

I decided to write a plugin for it. The fields we wanted were clear, who are you, how can we get in touch with you and can you attach your CV? Well I wrote just that. This plugin adds a widget which allows you to configure the form and the email which gets sent. Most importantly it allows you to either set a fixed recipient address for the email or allow it to be set by the post author when the form is submitted. Emails sent with an attachment and it does work very well indeed (or did for us).

Note from the screenshot that you can include in the intro paragraph the name of the person who is to be informed if you so wish (admin2 in our case).

I am happy to make amends to this plugin for anyone if they will use it. I dare say I shall use it again in the future. I hope someone finds it useful if only for something to base their own plugin on.

Download

SB Mail Attachment Widget (2.81 kB)

Updated version available here

Updated again 29/10/12

Leave a Reply