Page 3 of 4

Posted: Sun 22. May 2005, 03:26
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?

Posted: Sun 22. May 2005, 14:27
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

Posted: Sun 22. May 2005, 16:01
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

Posted: Mon 23. May 2005, 19:48
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?

Posted: Mon 23. May 2005, 20:43
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

Posted: Tue 31. May 2005, 15:43
by Omar
Hi Schluuch,

Yes deselecting this works indeed but if I want to redirect to a specific page what do I do then?

Posted: Tue 31. May 2005, 17:11
by schluuch
hi omar,

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

greetz
chris

Posted: Wed 1. Jun 2005, 02:18
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.

Posted: Thu 14. Jul 2005, 14:43
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

Posted: Tue 27. Sep 2005, 16:47
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!

too blind to see....

Posted: Thu 29. Sep 2005, 10:42
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 :)

Posted: Thu 29. Sep 2005, 11:09
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

Jep

Posted: Thu 29. Sep 2005, 20:05
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 ;-)

Posted: Mon 3. Oct 2005, 13:17
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?

required fields

Posted: Mon 10. Oct 2005, 19:13
by donhomie
I am sorry for this topic kick, but I still have not been able to get checkboxes to be required... anybody?