Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2004-10-17 05:42:15

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

[outdated] zem_contact, flexible mailto form

Notice: This plugin is outdated, there is a new version of the plugin here
**********************************************************

*This plugin has been adopted by ruud and can be found

<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
  • Email address validation, including a check for a valid MX record (Unix only)
  • Safe escaping of input data
  • Accessible form layout, including <label> tags

<strike>The plugin is being held for ransom. It will be made freely available under an open-source license once a total amount in cash contributions have been received. Complete details and documentation here.
</strike>

The ransom has been received, so the plugin is now available for download:

http://thresholdstate.com/software/3708/zem_contact

Last edited by zem (2004-12-10 00:28:43)


Alex

Offline

#2 2004-10-17 17:25:40

-jw-
Member
From: fruitbelly, the Netherlands
Registered: 2004-03-16
Posts: 79

Re: [outdated] zem_contact, flexible mailto form

I’m getting a 404 on the here link

edit :….of the demo that is (here twice, what was I reading…)

Last edited by -jw- (2004-10-17 17:26:47)


textile deletes my identity

Offline

#3 2004-10-17 17:51:29

obeewan
Archived Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

Re: [outdated] zem_contact, flexible mailto form


Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1

“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu

Offline

#4 2004-10-17 19:19:39

hafnius
Archived Plugin Author
From: DK
Registered: 2004-09-02
Posts: 47

Re: [outdated] zem_contact, flexible mailto form

Cool job, Zem and with no table for the form :)

is there some other check for an valid email address other then the MX checking? serverside or clientside?

In my experience you risk rejecting valid email addresses if the check is only done against the MX records.
/Hafnius


– Nobody puts Baby in the corner !
Johnny Castle, Dirty Dancing

Offline

#5 2004-10-17 22:46:57

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: [outdated] zem_contact, flexible mailto form

It falls back to an A record check if there’s no MX. There’s also a regexp check to make sure the email address is well-formed.

All validation is server side.


Alex

Offline

#6 2004-11-23 21:40:35

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: [outdated] zem_contact, flexible mailto form

The ransom has been paid, so the plugin is now available


Alex

Offline

#7 2004-11-23 22:28:58

Jaro
Member
From: S/F
Registered: 2004-11-18
Posts: 89

Re: [outdated] zem_contact, flexible mailto form

Thank you for making the plugin available. I tried it but same as Dean’s plugin it doesn’t work for me. Everything seems to be working fine, I got the message that email has been sent but I never recieve one. I tried with two email addresses.

Can server somehow restrict me from using email form?

My testing page

Offline

#8 2004-11-23 22:42:48

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: [outdated] zem_contact, flexible mailto form

It might. The plugin checks the result of the mail() function, and reports an error if that indicates failure. But there are lots of things that can go wrong with email that won’t be known at that point.

Do you have any other PHP scripts on the same server that can successfully send email? With ‘Mail comments to author’ enabled in your Textpattern config, do you receive an email when comments are added to your articles? If not, it suggests a problem with your server configuration.


Alex

Offline

#9 2004-11-23 23:16:08

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: [outdated] zem_contact, flexible mailto form

holy crap, zem. you managed to ransom $200 for your plugin? wow – good jeaorb.

now if only we could get Ray a little cash for his eMac over at txd…

Offline

#10 2004-11-24 10:30:17

Jaro
Member
From: S/F
Registered: 2004-11-18
Posts: 89

Re: [outdated] zem_contact, flexible mailto form

> zem wrote:

> It might. The plugin checks the result of the mail() function, and reports an error if that indicates failure. But there are lots of things that can go wrong with email that won’t be known at that point.

Do you have any other PHP scripts on the same server that can successfully send email? With ‘Mail comments to author’ enabled in your Textpattern config, do you receive an email when comments are added to your articles? If not, it suggests a problem with your server configuration.

I found the error. It was on my side.

From hosting support centre:

We require the one of either the ‘FROM:’ e-mail address or the ‘TO:’ e-mail address to be hosted on our servers. Only if one of them is hosted on our servers, you will be able to send e-mail successfully.

Offline

#11 2004-11-24 22:30:54

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: [outdated] zem_contact, flexible mailto form

I’ve posted a new version. It adds a “mailfrom” parameter, which might help with hosts that implement spam filters like the one the_panic encountered. Also a nonce-based security measure to guard against scripts.

Details here.


Alex

Offline

#12 2004-11-25 07:00:12

Jaro
Member
From: S/F
Registered: 2004-11-18
Posts: 89

Re: [outdated] zem_contact, flexible mailto form

zem, one thing about the plugin yet. when i install it it shows quite messy. do you know what’s wrong with it?

screenshot

Last edited by the_panic (2004-11-25 07:22:16)

Offline

Board footer

Powered by FluxBB