email contact form

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
dexter
Posts: 31
Joined: Fri 12. Mar 2004, 15:25
Location: Vancouver/British Columbia
Contact:

Post by dexter »

oh oh the form content part seems to be realy bugy. my form works great. i can sent, get a success message(although the success field is not selected) and the message arrives, but without content.

any suggestion?
schluuch
Posts: 6
Joined: Fri 20. May 2005, 20:24
Location: Dirmstein
Contact:

Post by schluuch »

hi,

my contact formmailer is not working...

could it be a problem with php safe mode on?

here is a small screenshot of my php config:

Image

also i changed the config.inc.php:

Code: Select all

$phpwcms['SMTP_MAILER']       = 'sendmail'; // default phpMailer: smtp, mail (default), sendmail
i don´t know what the problem could be...

you can test the form here:
http://www.ch-lippmann.de/wcms/index.php?kontakt

thx
chris

---------------------------------------------------------------------------------
Vielleicht hier nochmal alles auf deutsch:

Ich kann über das Email Kontakt Formular keine Mails versenden.
Die config.inc.php habe ich geändert auf sendmail, denn das habe ich in der phpinfo gelesen. Weiß leider nicht ob das so richtig ist. Aber SMTP funzt ja auch nicht. So denn habe ich überlegt, ob es vielleicht daran liegen könnte das das PHP bei meinem Provider auf SAFE MODE ON geschaltet ist und der es nicht umstellen will wegen Sicherheitsrisiken.
Auf der anderen Seite habe ich einen Beitrag vorher die Fehlermeldung angegeben, dass irgendwelche Includes nicht funktionieren in der class.phpmailer.php.

Ich wäre sehr dankbar, wenn mir jemand da weiterhelfen könnte.
Habe absolut keine Ahnung woran das liegt...

Greetz
Chris
schluuch
Posts: 6
Joined: Fri 20. May 2005, 20:24
Location: Dirmstein
Contact:

Post by schluuch »

Hallo,

habe es jetzt doch hinbekommen und zwar musste ich folgende Einstellungen in der config.inc.php vornehmen:

Code: Select all

$phpwcms['SMTP_MAILER']       = 'mail'; // default phpMailer: smtp, mail (default), sendmail
$phpwcms['SMTP_AUTH']         = 0; // sets SMTP_AUTH to ON/OFF
Jetzt funktioniert der Form Mailer :idea: :lol:


----------------------------------------------------------------------------------
hello,

i did following changes in my config.inc.php and now the contact form mailer works fine!!!

Code: Select all

$phpwcms['SMTP_MAILER']       = 'mail'; // default phpMailer: smtp, mail (default), sendmail
$phpwcms['SMTP_AUTH']         = 0; // sets SMTP_AUTH to ON/OFF
Omar
Posts: 44
Joined: Thu 10. Feb 2005, 21:55
Location: Netherlands

Post by Omar »

Looking at my config.inc.php it's the same as what you suggested.
But it aint working as yet only when deselecting on success and on error check boxes. Did you change anything else?
schluuch
Posts: 6
Joined: Fri 20. May 2005, 20:24
Location: Dirmstein
Contact:

Post by schluuch »

hi omar,

yes, you have to deselect the success and error boxes. then it should work.
if not, try at your config.inc.php the several options for your "smtp_mailer" and "smtp_auth".

greetz
chris
Omar
Posts: 44
Joined: Thu 10. Feb 2005, 21:55
Location: Netherlands

Post by Omar »

Hi Schluuch,

Yes deselecting this works indeed but if I want to redirect to a specific page what do I do then?
schluuch
Posts: 6
Joined: Fri 20. May 2005, 20:24
Location: Dirmstein
Contact:

Post by schluuch »

hi omar,

i´m sorry, i don´t know how to implement the redirection...

greetz
chris
Peekay
Posts: 286
Joined: Sun 25. Jul 2004, 23:24
Location: UK

Post by Peekay »

I have the form working and it displays the appropriate message on success or failure. However, I only got it to work by:

1) Turning off caching in main page of article (a tip from Ruby earlier in this thread).
2) Selecting SMTP as mail delivery method.
3) Setting 'Kopie an' to any field *except* email (so a copy is not sent).

I can't get it to work at all using PHP mail.
rushclub
Posts: 915
Joined: Tue 17. Feb 2004, 18:52

Post by rushclub »

dexter wrote:oh oh the form content part seems to be realy bugy. my form works great. i can sent, get a success message(although the success field is not selected) and the message arrives, but without content.

any suggestion?
in the field at the bottom insert the following:

if you have a textfield called »name« you have to put in the last field Name : {name}

repeat this with the other fields.

that should work

cheers
rush
3 (!) Jahre warten reichen mir. Ich bin erst mal weg.
phalancs
Posts: 793
Joined: Thu 19. Feb 2004, 05:09
Location: Germany

Post by phalancs »

About that redirection thing:

I assume that you only have to check the box, if you want to redirect to a given page in your site (remember the site aliases). If you type in a text like "thanx for the..." then phpwcms might search fot that alias - of yourse there is no such. It ends in an error 404.

Ok, these were my thoughts on that.

The other, more important thing is that the mail I receive is empty.
:O :O

I remeber having such problems sincew my hosting cpy switched to php safe on and stuff.
I think it had to do sth. with variables. This is an annoying issue and i got no clue how to cope with that.


Schluch you said you changed these lines:

Code: Select all

$phpwcms['SMTP_MAILER']       = 'mail'; // default phpMailer: smtp, mail (default), sendmail 
$phpwcms['SMTP_AUTH']         = 0; // sets SMTP_AUTH to ON/OFF
But this is the original setting and doesnt work for me.

Help!
2008
phalancs
Posts: 793
Joined: Thu 19. Feb 2004, 05:09
Location: Germany

too blind to see....

Post by phalancs »

I found it out myself.
Sorry for being panic, the solution for receiving empty emails is so easy.
oh oh the form content part seems to be realy bugy. my form works great. i can sent, get a success message(although the success field is not selected) and the message arrives, but without content.
I just forgot to fill in a template in the bottom of this content part. Arggg..
Ok, nothing with safemode, i am very erleichtert now.

Ok the essential parts from this topic in short:


1. Dont check the box with the success text unless you want to direct to a certain site alias.

2. If you receive empty emails, you just forgot to create an email template in the bottom of the email contact form content part.


Great i love this content part.

Now only the group user right thing and frontend login is missing :)
2008
jscholtysik

Post by jscholtysik »

Hi phalancs,


das mit der Vorlage steht aber auch so auf der phpwcms-docu.de-Seite:
Vorlage:
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.
Nachdem ich mir gerade noch einmal den Quellcode des Email-Kontaktformulars angeschaut habe, bin ich auch der Meinung, das in die "Bei Erfolg" und "Bei Fehler" Felder ein Alias reingehört. Ich habe die Docu dementsprechend angepasst.


Joachim

***********************************************************

Hi phalancs,

the phpwcms-docu site contains this description:
template:
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.
After looking once more into the source code of the email contact form, my opinion is also that an alias must be inserted into the "on error" and "on success" fields. I have corrected the documentation.


Joachim
phalancs
Posts: 793
Joined: Thu 19. Feb 2004, 05:09
Location: Germany

Jep

Post by phalancs »

Yes, you are right, that is why my title was:
Post subject: too blind to see....
;-)

Wie man sieht übersieht man manche Dinge leicht ;-)
2008
donhomie
Posts: 10
Joined: Thu 29. Sep 2005, 15:45

Post by donhomie »

Hello all,

I recently posted a problem in http://www.phpwcms.de/forum/viewtopic.php?t=8654 but now I discovered this topic. Perhaps there is anyone here who has a solution to the following:

I have a form with checkboxes that are required to fill out for the user, but when the form is submitted no error is thrown when the user selects none of the checkboxes. The same goes for multiple selection lists...

Any suggestions?
donhomie
Posts: 10
Joined: Thu 29. Sep 2005, 15:45

required fields

Post by donhomie »

I am sorry for this topic kick, but I still have not been able to get checkboxes to be required... anybody?
Post Reply