Etomite Community Forums: [Snippet] kMail 1.1 - Etomite Community Forums

Jump to content

Read Me

This forum is posted in automatically when a snippet is added to the library, or updated. Please use the snippet topic to discuss that snippet.

  • (3 Pages)
  • +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

[Snippet] kMail 1.1

#1 User is offline   DeanC 

  • Etomite Administrator
  • Icon
  • Group: Admin
  • Posts: 4,702
  • Joined: 08-June 04
  • Gender:Male
  • Location:United Kingdom

Posted 04 January 2008 - 01:19 PM

File Name: kMail 1.1
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 User is offline   katherholt 

  • Likes Etomite Forums!
  • PipPip
  • Group: Member
  • Posts: 366
  • Joined: 15-July 04
  • Location:Fort Gaines, GA

Posted 19 January 2008 - 05:25 PM

Hi Dean, I don't see in the snippet how to call it in a document. Should the cache be turned off for the document?

Is it:

[!kmail!]

Thanks, Karen

#3 User is offline   DeanC 

  • Etomite Administrator
  • Icon
  • Group: Admin
  • Posts: 4,702
  • Joined: 08-June 04
  • Gender:Male
  • Location:United Kingdom

Posted 19 January 2008 - 05:46 PM

I didn't write the snippet, it's the version that got lost on the forums a bit back, but yes, uncache the document and call it [!kmail!]

#4 User is offline   katherholt 

  • Likes Etomite Forums!
  • PipPip
  • Group: Member
  • Posts: 366
  • Joined: 15-July 04
  • Location:Fort Gaines, GA

Posted 19 January 2008 - 05:59 PM

Thanks Dean, I have is showing a form now. It wasn't clear in the chunks.txt file that you needed to make separate chunks from that file.

Here it is so far - needs some tweaking:
http://www.roswellro...m/contact2.html

#5 User is offline   katherholt 

  • Likes Etomite Forums!
  • PipPip
  • Group: Member
  • Posts: 366
  • Joined: 15-July 04
  • Location:Fort Gaines, GA

Posted 19 January 2008 - 10:19 PM

I have it working fine, but when I added the field 'company' - I can't get it to output in the email results.
http://www.roswellro...m/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 User is offline   katherholt 

  • Likes Etomite Forums!
  • PipPip
  • Group: Member
  • Posts: 366
  • Joined: 15-July 04
  • Location:Fort Gaines, GA

Posted 21 January 2008 - 07:10 PM

Has anyone successfully added extra fields to this kmail snippet?

#7 User is offline   Cris D. 

  • Loves Etomite Forums!
  • PipPipPipPip
  • Group: Member
  • Posts: 1,061
  • Joined: 10-August 06
  • Location:Brisbane, Queensland, Australia

Posted 21 January 2008 - 09:27 PM

Hi Karen,
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 User is offline   katherholt 

  • Likes Etomite Forums!
  • PipPip
  • Group: Member
  • Posts: 366
  • Joined: 15-July 04
  • Location:Fort Gaines, GA

Posted 21 January 2008 - 09:35 PM

I like the captcha part (it makes the user of the form feel more comfortable about security), but was unable to figure out how to add fields. I ended up using Lloyds - InquiryForm - it was much easier to modify. http://www.poolinspe...m/free-estimate

If anyone else has added fields to this snippet, please let me know.

Thanks, Karen

#9 User is offline   DeanC 

  • Etomite Administrator
  • Icon
  • Group: Admin
  • Posts: 4,702
  • Joined: 08-June 04
  • Gender:Male
  • Location:United Kingdom

Posted 21 January 2008 - 10:08 PM

How many extra fields were you looking for?

#10 User is offline   katherholt 

  • Likes Etomite Forums!
  • PipPip
  • Group: Member
  • Posts: 366
  • Joined: 15-July 04
  • Location:Fort Gaines, GA

Posted 21 January 2008 - 10:51 PM

View PostDean, on Jan 21 2008, 04:08 PM, said:

How many extra fields were you looking for?


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 User is offline   DeanC 

  • Etomite Administrator
  • Icon
  • Group: Admin
  • Posts: 4,702
  • Joined: 08-June 04
  • Gender:Male
  • Location:United Kingdom

Posted 21 January 2008 - 11:47 PM

I've had a go, and can't get it to work, sorry :(

Try asking the original creator, Kastor

#12 User is offline   kastor 

  • Etomite Forum Fan
  • Pip
  • Group: Member
  • Posts: 79
  • Joined: 23-September 05
  • Location:Gaienhofen, Germany

Posted 27 January 2008 - 10:12 PM

View Postkatherholt, on Jan 21 2008, 11:51 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.

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
I'll see if I've the time to create a new version of kmail which possibly supports custom fields or make it a bit more easier to add them by yourself.

Greetings, Kastor

#13 User is offline   WP1 

  • Etomite Forum Fan
  • Pip
  • Group: Member
  • Posts: 104
  • Joined: 03-January 05

Post icon  Posted 28 January 2008 - 03:31 AM

Hi Kastor!

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 User is offline   kastor 

  • Etomite Forum Fan
  • Pip
  • Group: Member
  • Posts: 79
  • Joined: 23-September 05
  • Location:Gaienhofen, Germany

Posted 28 January 2008 - 09:20 AM

View PostWP1, 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 User is offline   DeanC 

  • Etomite Administrator
  • Icon
  • Group: Admin
  • Posts: 4,702
  • Joined: 08-June 04
  • Gender:Male
  • Location:United Kingdom

Posted 28 January 2008 - 11:20 AM

added version number to original post, so that when you release the next version it has a larger version number, and users know that yours is newer.

  • (3 Pages)
  • +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users