Email Forms not workin

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
andrewg
Posts: 1
Joined: Fri 8. Jul 2005, 23:25

Email Forms not workin

Post by andrewg »

I am running DEV 1.2.3 but when I set up an email contact form, no email is sent. Any ideas on why that might be? :roll:
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

Post by pSouper »

which email form are you using? the 'email generator' or 'email contact form'
have you followed the docs? phpwcms-docu: email contact form
phpwcms-docu: email form generator

are you using SMTP to sned your mail? if so are the details in conf.inc.php complete & correct?

if not: are your email setting in conf.inc.php correct?
Pappnase

Post by Pappnase »

hello

and did you disable the cache for this structure!? but only if you wotk with an 1.2.x version!
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

Post by jsw_nz »

I know this is being reported in other threads...so just going to add this here. Yes, I too was having problems with the new (and quite elegant) email contact form (dev version).

What I found out is that the actual names of form elements MUST be added to the template section (text/html options) - otherwise you get a blank email. Pappnase.....if you read this please add this to your docu site....(update: thanks jscholtysik for making those changes)

ie: template: text

Code: Select all

{Name}
{Checkbox}
{Email}
BTW: I did find out the {rep tags} are fully compatible with this content part....so I was able to apply a rep tag expression to a checkbox. I had a particular requirement to display prices of items site wide:
http://www.phpwcms.de/forum/viewtopic.php?t=7639


Bascially declaring the price in the article itself:

Code: Select all

{SET_PRICE:55.99}
And displaying it in the checkbox code like this:

Code: Select all

//NAME: 
{GET_PRICE:8}
//outputs the article title and price of article ID 8
Very nice content part!
Thanks Oliver :D
Last edited by jsw_nz on Thu 14. Jul 2005, 19:57, edited 1 time in total.
jscholtysik

Post by jscholtysik »

Hi John,


I have changed the description of the template field in the docu site both in english and german part. I hope it is now clear for all... :idea:

English:
Here you have to insert a template, otherwise you will be sent a blank email. This template can be created as a text template or as an html template. In the templates you can use all field names of the form.
German:
Hier muß ein Template eingegeben werden, sonst erhalten Sie eine leere Email zugesendet. Dieses Template kann als Text-Template oder als HTML-Template erstellt werden. In den Templates können Sie alle Namensfelder des Formulars verwenden.

Joachim
Rubaflo
Posts: 5
Joined: Wed 13. Jul 2005, 09:36
Location: NC, USA

Post by Rubaflo »

Hello,
What should the email settings in the conf.inc.php look like. I do not have it setup to email with smtp. I have the email contact form made and the form shows up properly, but when I hit sumbit query it just brings up The Page Cannot be found error . Any ideas? I am new to all of this so it could be something quite simple.

Thanks,
adam
rushclub
Posts: 915
Joined: Tue 17. Feb 2004, 18:52

Post by rushclub »

Rubaflo wrote:Hello,
What should the email settings in the conf.inc.php look like. I do not have it setup to email with smtp. I have the email contact form made and the form shows up properly, but when I hit sumbit query it just brings up The Page Cannot be found error . Any ideas? I am new to all of this so it could be something quite simple.

Thanks,
adam
remove the checked boxes after success and error in the contentpart contact. that should do it.

cheers
rush
3 (!) Jahre warten reichen mir. Ich bin erst mal weg.
Rubaflo
Posts: 5
Joined: Wed 13. Jul 2005, 09:36
Location: NC, USA

Post by Rubaflo »

Thanks Rush.....I unchecked those boxes. Now when I try and submit the email form without all fields filled in the proper error message displays. However, with everything filled in I get this message upon submitting:

Language string failed to load: instantiate

I have no idea what this means. Any ideas?

Thanks for anyones and everyones help!

~adam
rushclub
Posts: 915
Joined: Tue 17. Feb 2004, 18:52

Post by rushclub »

Rubaflo wrote:Language string failed to load: instantiate
hi rubaflo,

seems that a language-file is missing or incomplete :?:

cheers
rush
3 (!) Jahre warten reichen mir. Ich bin erst mal weg.
jwads06
Posts: 7
Joined: Fri 5. Aug 2005, 04:19
Location: Bangkok, Thailand
Contact:

same problem

Post by jwads06 »

hey guys,

I'm having the same problem rubaflo had. Instantiate message. Wondering if anyone could tell me what language file might be missing or if it was solved otherwise.

Thanks,

John
Post Reply