Jump to content


Generalenquiry


  • You cannot reply to this topic
59 replies to this topic

#41 lloyd_borrett

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 605 posts
  • Gender:Male

Posted 02 July 2006 - 01:11 PM

G'day,

You have two ways to go on this.

You could adapt the snippet to output a table that uses existing tables styles in the Mollio template.

Or, you can add new styles for this table to the Mollio template, plus add the required class, div and/or span tags into the snippet.

Me, I'd give the first way a go. Then if it's not quite right for you, you can replicate the existing Mollio styles with slightly different names.

Best Regards, Lloyd Borrett.

#42 DeniseDD

    Etomite Forum Fan

  • Member
  • Pip
  • 79 posts

Posted 21 July 2006 - 10:40 AM

Thanks for your script. How do I adapt the script to have the filled out information appear in the message field instead of an attachment?

#43 vw53a

    Likes Etomite Forums!

  • Member
  • PipPip
  • 393 posts

Posted 13 August 2006 - 09:04 PM

How should I use this snippet? I can't find that in the snippet itself.
My guess is I should put [ [ GeneralEnquiry ] ] (without spaces) in an empty document.
But when I do so, nothing is output. I only see what's put there by the template.

What am I doing wrong?

Anybody???

Edited by vw53a, 21 August 2006 - 04:54 AM.


#44 DeniseDD

    Etomite Forum Fan

  • Member
  • Pip
  • 79 posts

Posted 22 August 2006 - 12:21 PM

Did you use GeneralEnquiry for the snippet name? If not, change it to that.

#45 vw53a

    Likes Etomite Forums!

  • Member
  • PipPip
  • 393 posts

Posted 22 August 2006 - 02:58 PM

Yes, exactly as that. with a capital G and E, no accidental spaces. The snippet as well as the call are identical. So, there's nothing wrong there. Still... no output from the snippet.

#46 DeniseDD

    Etomite Forum Fan

  • Member
  • Pip
  • 79 posts

Posted 22 August 2006 - 03:02 PM

Well that's all folks :) Try sending the author a PM if you don't find the answer.

#47 lloyd_borrett

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 605 posts
  • Gender:Male

Posted 24 August 2006 - 09:56 PM

G'day,

The way I use it is to just the following in my document content:
[!GeneralEnquiry!]

Then make sure the document's 'Cacheable' value is not set.

Best Regards, Lloyd Borrett.

#48 sandra-ch

    Etomite Forum Newbie

  • Member
  • 43 posts

Posted 16 September 2006 - 09:59 PM

hi

i tried the GeneralEnquiry Form and the only thing i changed is the e-mail adress and the company name. before i try to change and add fields i would check if sending is ok but i get the following error message:

« PHP Parse Error »

PHP error debug
Error: mail(): SAFE MODE Restriction in effect. The fifth parameter is disabled in SAFE MODE.
Error type/ Nr.: Warning - 2
File: /home/httpd/vhosts/xxx.org/httpdocs/index.php(578) : eval()'d code
Line: 361


its
Version / 0.6.1 Final
Codename / Prelude
PHP / 4.3.9
Linux / 2.4.21-27.0.2.EL
Apache/2.0.46 (Red Hat)

#49 Dean

    Loves Etomite Forums!

  • Admin
  • 4,758 posts
  • Gender:Male

Posted 16 September 2006 - 10:12 PM

It's this that's causing you issues with mail snippets: SAFE MODE

you need to ask your host what you can do....

#50 sandra-ch

    Etomite Forum Newbie

  • Member
  • 43 posts

Posted 17 September 2006 - 03:23 PM

Hi,
my isp set the SafeMode off and now the form is sent.

but there is another problem: the e-mail has no sender-name, the field from (Von:) is empty.
is this again a problem from the isp or from the script?

---
Header-Information:
Return-Path: <"<xxx"@gmx.ch>>
Delivered-To: 616-xxx@krei-sch.ch
X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on
copernicus.sui-inter.net
X-Spam-Level:
X-Spam-Status: No, score=0.2 required=4.0 tests=NO_RELAYS,TW_KT,
X_PRIORITY_HIGH autolearn=disabled version=3.1.3
Received: (qmail 3804 invoked by uid 48); 17 Sep 2006 17:12:33 +0200
Date: 17 Sep 2006 17:12:33 +0200
Message-ID: <20060917151233.3803.qmail@copernicus.sui-inter.net>
To: xxx@krei-sch.ch
Subject: Kontaktformular - General Enquiry
MIME-Version: 1.0

----
E-Mail:
Von:
Gesendet: Sonntag, 17. September 2006 14:58
An: xxx@krei-sch.ch
Betreff: Schaffhausen General Enquiry - General Enquiry


Content-type: text; charset=iso-8859-1 Content-Transfer-Encoding: 8bit From: sandra <ssandra@gmx.ch>
Reply-To: sandra <xxx@gmx.ch>
X-Priority: 1 X-Mailer: Etomite CMS 0.6 (Prelude) using PHP 4.3.9 mailer

NAME: sandra
EMAIL: xxx@gmx.ch
PHONE: 12345
COMPANY:
MESSAGE:
CONTACT PERMISSION: Do not contact me
---

#51 lloyd_borrett

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 605 posts
  • Gender:Male

Posted 23 October 2006 - 09:17 PM

G'day,

I've been asked if it is possible to get this snippet to send a copy of the email to a third party. For example, the email goes to your client who you built the web site for, but you'd also like a copy so that you can monitor how effective the inquiry form is.

Well sure it is. Just place the following code in the section where the header is built before the email is send, changing the name and email address to your details.

$webmasteremail = "Webmaster <webmaster@winenergy.com.au>";
	$headers .= "Bcc: ".$webmasteremail."\r\n";

Best Regards, Lloyd Borrett.

#52 mikef

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,551 posts

Posted 23 October 2006 - 09:28 PM

but if you do this, consider the legal and moral privacy implications.

#53 Dean

    Loves Etomite Forums!

  • Admin
  • 4,758 posts
  • Gender:Male

Posted 23 October 2006 - 10:00 PM

Remember there are other uses for BCC'ing it - if you are a large organisation, you may have a server archiving all mail going to certain addresses, and it would forward it on.

#54 BEN

    Etomite Forum Newbie

  • Member
  • 38 posts

Posted 07 November 2006 - 07:31 AM

Hello Lloyd,

Nice snipet - working perfectly thank you.

I just need to make one of the fields optional instead of mandatory - how is this done please? I looked at the code but couldnt really figure it out, I took a few bits out that looked like it was making it mandatory - but it just screwed it up :unsure:

Thanks!
Ben.

#55 deadline

    Etomite Forum Fan

  • Member
  • Pip
  • 68 posts

Posted 24 March 2007 - 02:52 AM

I recently used this snippet, and had to change

"Content-type:text;"
to
"Content-type:text/plain;"

in order to get well formated email notifications.

deadline

#56 lloyd_borrett

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 605 posts
  • Gender:Male

Posted 24 March 2007 - 03:43 AM

G'day,

I personally stopped using this snippet a long time ago.

The one I use now is InquiryForm, see http://www.etomite.com/index.php?au...amp;showfile=44, which I've just been updating.

Best Regards, Lloyd Borrett.

#57 deadline

    Etomite Forum Fan

  • Member
  • Pip
  • 68 posts

Posted 24 March 2007 - 01:02 PM

Thanks Loyd,

However, this snippet fits perfectly my needs...
I'll be adapting this one in order to store the customer fields into a database (SugarCRM as an example)

Have a good day.
deadline

#58 hello

    Etomite Forum Newbie

  • Member
  • 34 posts

Posted 17 September 2007 - 11:19 AM

hello in this code would like email in body instead of attachment how please?

Attached Files



#59 Dean

    Loves Etomite Forums!

  • Admin
  • 4,758 posts
  • Gender:Male

Posted 17 September 2007 - 11:23 AM

Topics merged.

#60 mikef

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,551 posts

Posted 20 August 2008 - 02:21 PM

for anyone still using this snippet (like me!) the body of the message is not displayed with at least one web based mail reader (outitgoes.com). After discussion with their support it seems that Content-type needs to be text/plain, not text.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users