[Snippet] kMail 1.1
#1
Posted 04 January 2008 - 01:19 PM
File Submitter: Dean
File Submitted: 4 Jan 2008
File Updated: 28 Jan 2008
File Category: Feedback / E-Mail Forms
kMail Contact Form
Click here to download this file
#2
Posted 19 January 2008 - 05:25 PM
Is it:
[!kmail!]
Thanks, Karen
#3
Posted 19 January 2008 - 05:46 PM
#4
Posted 19 January 2008 - 05:59 PM
Here it is so far - needs some tweaking:
http://www.roswellrotary.com/contact2.html
#5
Posted 19 January 2008 - 10:19 PM
http://www.roswellrotary.com/contact2.html
Does anyone have any samples of adding more fields to this form. Also I don't need every field to be required. I stripped the code for 'subject' to be required from the snippet - will that affect security?
Also, the phrase 'To avoid spam emails' on the contact - 'aviod' is misspelled.
#6
Posted 21 January 2008 - 07:10 PM
#7
Posted 21 January 2008 - 09:27 PM
I have never used this snippet, but it looks good, thanks for bringing it to my attention. Firstly, the "avoid" is in the chunk that comes with the snippet and can easily be fixed there. Second, I have never added or removed fields to this snippet but the code is pretty entrenched with error checking, chunk and resource data array matching, javascript and language messages, so it isn't a case of just add this at line:xxx and delete this from line:ZZZ It will take a fair bit more effort than that.
#8
Posted 21 January 2008 - 09:35 PM
If anyone else has added fields to this snippet, please let me know.
Thanks, Karen
#10
Posted 21 January 2008 - 10:51 PM
Dean, on Jan 21 2008, 04:08 PM, said:
Just some generic ones: (enough to make the form more flexible)
Company
Address
Zip
State (pull down for U.S.) (optional - may require too much coding.)
They don't have to be required fields.
For instance, I could not get this form using kMail - http://www.villarica.org/contact.html
because I used 'Company' - I couldn't get it to list on the email response form.
I like the multiple recipients and the captcha options - they work well on the city and tourism web sites I maintain.
#11
Posted 21 January 2008 - 11:47 PM
#12
Posted 27 January 2008 - 10:12 PM
katherholt, on Jan 21 2008, 11:51 PM, said:
Company
Address
Zip
State (pull down for U.S.) (optional - may require too much coding.)
They don't have to be required fields.
For instance, I could not get this form using kMail - http://www.villarica.org/contact.html
because I used 'Company' - I couldn't get it to list on the email response form.
I like the multiple recipients and the captcha options - they work well on the city and tourism web sites I maintain.
Hi,
my snippet only does simple text replacements with the chunks and the given input from the mail form. Therefore it's not very easy to create your own fields and/or remove other ones. Basically, you have to do the following:
- create the input and name it inside the mail form
- check the input
- read the input inside the mail routines and
- add your field to the mail chunk, at last
- customize the str_replace call to take your new field and the input into account before creating the mail body
Greetings, Kastor
#13
Posted 28 January 2008 - 03:31 AM
I am also a kMail user and it works fine on the site. However, it would be really cool to also see the functionality added to the snippet that you indicate above.
QUESTIONS
- Would there be any way to be able to place the form on different pages with different Topics/Departments listed along with different email addresses? Could it be called from the different pages differently to allow this?
- Or could there be a slight change in the snippet name [for each different page] so that it could be called into specific/different pages so that different Topics/Departments and emails could be listed for these different pages?
Thanks in advance for your response.
WP
This post has been edited by WP1: 28 January 2008 - 03:32 AM
#14
Posted 28 January 2008 - 09:20 AM
WP1, on Jan 28 2008, 04:31 AM, said:
- Would there be any way to be able to place the form on different pages with different Topics/Departments listed along with different email addresses? Could it be called from the different pages differently to allow this?
- Or could there be a slight change in the snippet name [for each different page] so that it could be called into specific/different pages so that different Topics/Departments and emails could be listed for these different pages?
on my list...
Greetings, Kastor
#15
Posted 28 January 2008 - 11:20 AM


Help
Back to top
MultiQuote









