zem_contact

A flexible, customizable and secure email feedback form for Textpattern.

<txp:zem_contact> produces a flexible, customizable email contact form. It’s intended for use as an enquiry form for commercial sites, and includes several features to help reduce common problems with such forms (invalid email addresses, missing information).

Features:

  • Arbitrary text fields can be specified, with min/max/required settings for validation
  • Support for checkboxes and drop-down lists
  • Nonce-based script spam prevention
  • Email address validation, including a check for a valid MX record (Unix only)
  • Safe escaping of input data
  • Automatically generates an accessible form layout using valid XHTML, including <label> tags

Download the current version: zem_contact-0.6.txt
Online docs: zem_contact documentation

Changes:

version 0.6

  • Fixed a bug that allowed some ‘required’ fields to be omitted

version 0.5

  • Better handling of international characters
  • Fixed a quoting bug
  • Now supports separate display of status messages and input form
  • Customizable thankyou message

version 0.4

  • Documentation updates

version 0.3

  • Added <txp:zem_contact_serverinfo /> tag

version 0.2

  • Added mailfrom attribute
  • Nonce mechanism to prevent repeated submission and scripted DoS

Patrons

zem_contact was released under an open source license after a $200.00 ransom was paid. The following people contributed $US 5.00 or more towards its release:

Chris Winfield
Sencer
Spreeblick
Ever/Never Design


I think I found a bug. When I upgraded from version 0.4 to 0.5 I do not get an error message if someone does not fill out any fields in the form. It doesn’t send an email but it does not let the user know that there was an error.

i’m not using a textpattern form for the output. I’m jut using the simple output on my contact “page”.

Example page:
http://www.solardreamstudios.com/contact/

qrayg    Dec 10, 07:34 pm    #

Thanks. I’ve fixed the problem in 0.6.

Alex    Dec 11, 04:04 am    #

Cool… thanks for the fix. Everything works great now. Love your work.

qrayg    Dec 12, 05:49 am    #

Is there any plan to include the optgroup or fieldset tags? I love all your plugs including this. It seems as if I can use this for everything that I currently have except for my fieldset lables and my optgroup headings in my dropdown selections.

Thanks for all of your work to make textpattern so much more user friendly and expansive to all of us non Php people!

Jamie    Jan 8, 12:26 am    #

Yup, thanks for all the plugins!

Cyrus    Jan 10, 04:31 pm    #

Any chance you might be willing to add an email attachemnt option? I’m setting up my site for my students and would like to allow them to upload assignments as an attachment to emails

scott    Jan 19, 10:00 pm    #

Zem, Nice plugin. It’s very flexible and who does’t love flexibility? One thing I’d like to be able to do is change the subject to something more of my liking. Maybe even have it be dynamic like Dean’s was for me. When I received an email from Dean’s plugin the subject said something like this:

[sitename.com] Sender’s Subject
i.e. [joshuaheyer.com] Question about your website…

Can you add some flexibility to your plugin to make the subject a little more flexible and recognizable when looking over hundreds of emails? Thanks.

Joshua Heyer    Jan 20, 04:23 am    #

Alex, there is a small bug in the 0.6 version: when pulling a custom form from db, the result is put into $Form, not $form, so it doesn’t really work.

— Filip Hajny    Feb 4, 09:29 pm    #

Alex,

I have a little problem with IE: when submitting empty fields, the script doesn’t return an error message but simply reloads the page. This doesn’t happen is Firefox.

— Kero    May 27, 12:02 am    #

Quick question: is there a way to specify more than one mailto address with this plugin?

jeremy    May 27, 07:13 am    #

urp urp

— urp    Aug 25, 04:11 pm    #

test

test    Aug 25, 04:23 pm    #

Commenting is closed for this article.