ZenphotoCMS Forum
contact_form plugin not working - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: contact_form plugin not working (/thread-2971.html)

Pages: 1 2 3


contact_form plugin not working - lionel77 - 2008-10-08

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?




contact_form plugin not working - acrylian - 2008-10-08

Looks everything alright. Did you fill in a email adress in the plugin's options? The plugin as stated in the doc does not use the admin email adress.




contact_form plugin not working - lionel77 - 2008-10-08

i have tried a few different email addresses, still nothing.. any other ideas?




contact_form plugin not working - acrylian - 2008-10-08

I am sorry, I have no idea. It's working on my host. The function that is used for mailing is basically the function that is used for the comments mail, too.




contact_form plugin not working - olihar - 2008-10-10

I still have this same problem as lionel77, and I posted about it some weeks back in a thread.

I can receive emails about comments just fine, as to to every email from the system except from the Contact plugin.




contact_form plugin not working - acrylian - 2008-10-10

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...




contact_form plugin not working - olihar - 2008-10-10

I gave this a try, no change.

No error in logs.

PHP version 5.2.5




contact_form plugin not working - olihar - 2008-10-11

@acrylian

Would you be interested in getting access to a folder to put up zenphoto on my server (surpass hosting)? to try out Zenphoto.

will give you ftp access to the folder and make a sql database for you.

just wondering about support in the future.




contact_form plugin not working - acrylian - 2008-10-12

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);




contact_form plugin not working - acrylian - 2008-10-13

Please also read the entry on php mail here: http://de.php.net/manual/en/function.mail.php




contact_form plugin not working - olihar - 2008-10-13

I gave

mail(getOption("contactform_mailadress"), $subject, $message, $headers);
a try and it is a no go ether...

The offer to get space on my server is still up for you guys.




contact_form plugin not working - acrylian - 2008-10-13

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.




contact_form plugin not working - olihar - 2008-10-13

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




contact_form plugin not working - acrylian - 2008-10-13

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.




contact_form plugin not working - stevenew - 2008-10-13

Hi acrylian, thanks for the pointer over to this thread. I tried usingmail(getOption("contactform_mailadress"), $subject, $message, $headers); but no luck.




contact_form plugin not working - olihar - 2008-10-13

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




contact_form plugin not working - acrylian - 2008-10-13

Looks quite normal I would say. I am really clueless then...




contact_form plugin not working - olihar - 2008-10-13

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




contact_form plugin not working - acrylian - 2008-10-13

Ah, probably it's the missing mime-version and content type then. Could you add these two to the contact_form.php in line 161/162?




contact_form plugin not working - olihar - 2008-10-13

well only if it was that simple... Well I guess it does not hurt to put it in the code however....

its a no go.

its not something in the confirm process...??? its so strange this only happens on some servers.