Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2004-04-19 10:04:31

Dean
Founder (Gone, but not forgotten)
From: Languedoc
Registered: 2004-02-14
Posts: 235
Website

dca_mailto_form (simple email form)

Available (zip file) here.

This plugin will generate a simple email feedback form, ideal for yoursite.com/contact. Available for the moment only in English.

<txp:dca_mailto_form email="youthere.com” />@


text*

Offline

#2 2004-04-19 14:03:43

mapu
Member
From: Munich, Germany
Registered: 2004-03-16
Posts: 141

Re: dca_mailto_form (simple email form)

Simple, but very useful! Thx!

Offline

#3 2004-04-19 15:02:56

kusor
Member
From: Spain
Registered: 2004-03-07
Posts: 93
Website

Re: dca_mailto_form (simple email form)

Nice for lazy guys, like me!. Thanks.

Offline

#4 2004-04-19 21:48:13

indent
New Member
From: Melbourne, Australia
Registered: 2004-02-23
Posts: 8
Website

Re: dca_mailto_form (simple email form)

What happens on the backend with this plug-in? After I hit submit, is it plugin or native code that takes the form input and sends the email? The reason I ask is that the forms seems to have an action of just 'index.php'.


VC#72, waiting patiently for /section/category/article-title/ based URLs :)

Offline

#5 2004-04-20 00:45:21

january
New Member
From: Treasure Coast, Florida
Registered: 2004-02-23
Posts: 9
Website

Re: dca_mailto_form (simple email form)

Wonderful plugin, and it works quite well, however, I did notice one thing, as I was setting up a contact page and reworking my site: If I try to validate CSS on the page containing the contact form, I recieve the following error.

Line 48: Property margin-below doesn’t exist : 1em

If I view the source on the contact page, it looks like the plugin div styles the textarea, with a property value of margin-below:1em; Now I’m fairly sure this should be margin-bottom:1em; but I cannot for the life of me figure out where to correct this. The editable area under the plugin tab doesn’t show this at all, and trying to edit the plugin text file just returns a string of characters.

Offline

#6 2004-04-20 06:38:36

Kossatsch
Member
From: St. Wolfgang
Registered: 2004-04-01
Posts: 198
Website

Re: dca_mailto_form (simple email form)

Thanks a lot, great plugin.

Only: Would it be possible to make a kind of: “Your message has been sent. Thanks!”, including sending a kind of confirmation to the sender?

Hm, seem to have made al little syntax mistake down there. I cannot edit it, sorry.

Last edited by Kossatsch (2004-04-20 09:32:01)


txp at irox.de since spring 2004 (g1.17) & at roxomatic since 2006.

Offline

#7 2004-04-20 06:44:23

Kossatsch
Member
From: St. Wolfgang
Registered: 2004-04-01
Posts: 198
Website

Re: dca_mailto_form (simple email form)

Hm, doesn’t work. Makes a kind of the following code.

<pre><form method=“post” action=”/index.php”>
<p>Name<br /><input type=“text” name=“sender_name” value=”“ /></p>
<p>Email<br /><input type=“text” name=“sender_email” value=”“ /></p>
<p>Subject<br /><input type=“text” name=“sender_subject” value=”“ /></p>
<p>Message<br /><textarea name=“message” cols=“1” rows=“1”
style=“height:300px;width:300px;margin-below:1em;”></textarea></p>
<p><input type=“submit” name=“send” value=“Send” /></p>
</form><br /></pre>

<txp:dca_mailto_form email="youthere.com" />
Of course, I put my adress into the field above.

Any suggestions?


txp at irox.de since spring 2004 (g1.17) & at roxomatic since 2006.

Offline

#8 2004-04-20 15:01:49

Dean
Founder (Gone, but not forgotten)
From: Languedoc
Registered: 2004-02-14
Posts: 235
Website

Re: dca_mailto_form (simple email form)

> Line 48: Property margin-below doesn


text*

Offline

#9 2004-04-20 22:09:18

january
New Member
From: Treasure Coast, Florida
Registered: 2004-02-23
Posts: 9
Website

Re: dca_mailto_form (simple email form)

Thank you Dean! Changing it to margin-bottom worked like a charm, validates perfectly!

Offline

#10 2004-04-24 13:41:50

ThrokFeroth
Member
From: Malaysia
Registered: 2004-02-28
Posts: 12
Website

Re: dca_mailto_form (simple email form)

Thanks alot.

How about adding something to prevent from sending an empty message? If the name is filled in, the email will still be sent even though the rest of the inputs are empty.

Last edited by ThrokFeroth (2004-04-24 13:44:51)

Offline

#11 2004-04-24 17:06:57

cnolle
Archived Plugin Author
Registered: 2004-03-21
Posts: 87
Website

Re: dca_mailto_form (simple email form)

Small little error

for use of the plugin it says:

<:txp:dca_mailto_form email=“your@email.address”/>

should say

<txp:dca_mailto_form email=“your@email.address”/>

otherwise great stuff.

Offline

Board footer

Powered by FluxBB