i have cannot get the contact form plugin to work..the form works but i am not recieving any email...i have tried everthing. also, email works fine on comments so i dont think it is my host.
go to lab55.com
click on "contact"
does the contact page need to be somewhere other than theme/"yourtheme" directory?
I would love to solve that but it's hard without being able to reproduce it. Do you get any error in your log? Which php version do you both run? Lacking other ideas I now have a suspicion that we maybe have a php version conflict here. Could you please try the following:
Change line 191 of contact_form.php
UTF8:end_mail(getOption("contactform_mailadress"), $subject, $message, $headers);
to
$utf = new UTF8; $utf->send_mail(getOption("contactform_mailadress"), $subject, $message, $headers);
A wild guess though...
A thing you could try is to use the pure php function mail() without our utf8-stuff.
Replace
UTF8:end_mail(getOption("contactform_mailadress"), $subject, $message, $headers);
with
mail(getOption("contactform_mailadress"), $subject, $message, $headers);
Please also read the entry on php mail here: http://de.php.net/manual/en/function.mail.php
Could you please add a line before that to print the variables? Maybe somehow some are empty or whatever so that it prevents from sending.. The contact form is regarding the actual mailing really nothing that special....
Please try also to use that function with plain text directly.
Thanks for the offer, but I currently don't know what to look for except the suggestion just made.
Do you care to explain this a bit better please? Code wise.
I have my mind set to a little project I am working for an exhibition right now so I might be a bit slow thinking at the moment on this case here. I really would like this problem solved as seem more people on the forum, and I am going to try to put as much time into testing as I can.
if not I will have a look at what you just said in few days and try to make some sense out of it for me to do some tests.
Thanks for your time yet again Malte.
P.s. I got an interesting error when I did some quick playing in the file.
Parse error: syntax error, unexpected ')', expecting T_PAAMAYIM_NEKUDOTAYIM
I mean just add before the mail part a simple echo $subject; echo $message; echo $headers so that we can see their values. Maybe somehow the post data is not going through.
Regarding the mail function try that on a page directly like to see if that itself does work. It seems some servers do not sent mails.
ahh yeah... I did a quick test.
echo $subject; echo $message; echo $headers;
Returned this.
Subject (Gallery)Message TitleName First Last Company Street City Country email@to.reply.to.test 1234567 http://www.test.com From: email@to.reply.to.test Reply-To: email@to.reply.to.test X-Mailer: PHP/5.2.5 Cc: email@to.reply.to.test
Screenshot for a better look at what was in the fields.
http://img.skitch.com/20081013-qsb2qwy31cfcts5x5hp6q5983g.jpg
I just made a random php file and put it into a folder on my server with an example from the page you posted.
`
`
opened it and I got emails pretty much 1 sec later.
Screeshot
http://img.skitch.com/20081013-pfx7dji32kic8u3mtjk1afdk5b.jpg