1

Topic: Contact form not working

Hi Guys, none of my contact forms are working anymore, although they worked fine when I tested them just after setting them up.  The message took up to 2 hours to come through.  I just did a vanilla install and tried a new contact form and still nothing............
How does this system work?  If I look at the ones from earlier that worked, the last seem to come from my-domain.hosts.co.uk but some had the email address that was filled in on the form.
Any ideas?

sidux and Debian Squeeze linux user

2

Re: Contact form not working

The contact form use the mail() function in PHP. It sounds like there is a problem with mail server at your web-hosting.

Work smart, not hard

Kan du læse det her?

3

Re: Contact form not working

Spirit55555 wrote:

The contact form use the mail() function in PHP. It sounds like there is a problem with mail server at your web-hosting.

Mail server seems ok.  Could the address have got onto my blacklist?  What should I look for or add to my whitelist?

sidux and Debian Squeeze linux user

4

Re: Contact form not working

The contactform uses the email of the visitor to fill in the FROM header of the email. Is that what you mean?
Maybe you should also check your mailservers spam status in CBL for example.

5

Re: Contact form not working

Sander wrote:

The contactform uses the email of the visitor to fill in the FROM header of the email. Is that what you mean?
Maybe you should also check your mailservers spam status in CBL for example.

Sorry Sander, I am very confused.  I cant figure this out at all.  I googled CBL but dont understand the relevance.  You can look up an ip address presumably to see if it is sending spam?  How do I know which ip address to look up?  I have read that contact forms can be highjacked and used to send spam, but how would you know if this was happening?

sidux and Debian Squeeze linux user

6

Re: Contact form not working

I just set up a test site using the skybluecanvas cms and tested the contact form.  It worked fine, so I guess that means my mailserver is working ok?

sidux and Debian Squeeze linux user

7

Re: Contact form not working

miks wrote:

I just set up a test site using the skybluecanvas cms and tested the contact form.  It worked fine, so I guess that means my mailserver is working ok?

And you still have problems with the pluck contact form? That's strange, because pluck just uses the PHP mail()-function... so if emails come through too slowly, it most probably has something to do with the PHP / server configuration.

It's possible that the Skybluecanvas directly uses smtp or something too send emails, that way bypassing the PHP mail() function. I'm not sure, however.

8

Re: Contact form not working

I just tried a different email address (@btinternet, the one I got from my ISP) for the form to send to and it came through in a few seconds. smile

That makes me thing that it the address I had been using, which is my domain webmail address, must have somehow blocked the address where the contact form mail is coming from.  My webmail is not on the blacklist, so I dont know what is blocking the mail from the contact form.  I will contact my host service (Namesco) and see if they know why it is being blocked.
I will let you know if I get it sorted.
Thanks for the help.

EDIT:  I thought I had better just try my domain email address again, and guess what? It is now working again.  So between 27 jan and some time today, it was not working, and now it is working.   roll

Last edited by miks (06-02-2009 18:40:13)

sidux and Debian Squeeze linux user

9

Re: Contact form not working

Old topic, but I seem to have a similar problem. I'm testing Pluck and the mailform seems to be working correctly. After submit the form echoos that the mail has been sent succesfully, but I don't recieve it in my mailbox. I altered my mailadres in the settings, but both on my hotmail.com and on my gmail.com I never got the emails. Does anybody know what the problem might be?
Thanx.

10

Re: Contact form not working

Is there a mail-server set up on the system where you execute the scripts? If you test it, then i suppose you're on your local server that is, i suppose again, a xampp installation. You just have to activate the 'mercury' in your xampp control panel and the e-mail should be sent.

Greets Marc

if (empty($wine) AND $music != 'classic') {
    $coding = false;
}

11

Re: Contact form not working

Thanx for your reaction.
I'm testing in a separate directory of my own website, hosted by a dutch hostingprovider. On my website is a php mailform that i created myself once and that one is working.
The standard Pluck contactform echoos it's working, but I don't receive the emails.

12

Re: Contact form not working

Check this file:
data/settings/options.php

The mailadress in it is correct?

If, then you can check:
data/modules/contactform/pages_site/contactform.php

Try to replace line 66:

if (mail($email,$subject,"<html><body>$message</body></html>","From: $sender \n" . "Content-type: text/html; charset=utf-8")){

With that:

if (mail($email,$subject,$message)){

Just to see, if that works.

Goodluck.
Marc

if (empty($wine) AND $music != 'classic') {
    $coding = false;
}

13

Re: Contact form not working

Thanx again for the instuctions.
Unfortunately, that didn't work.
Emailadres is correct and the replacement of line 66 didn't work. (I think that the if in line 66 was already true, because the page echoos a succes message.)

Still no emails in my inbox. (Or spambox etc). sad

Last edited by tomdelange (28-07-2010 15:28:37)

14

Re: Contact form not working

Ok, now try to use my mail as recipient: mdsky@web.de (adress for spam, so don't worry) - lets check if there's some blacklisting problem et cetera. I tell you if i got a mail.

Last edited by mdsky (28-07-2010 15:26:24)

if (empty($wine) AND $music != 'classic') {
    $coding = false;
}

15

Re: Contact form not working

Done.

16

Re: Contact form not working

You are right!
I tried it on yet another emailadres of mine and that one worked. So I don't get the messages on hotmail.com or gmail.com, but I do get it on a third emailadress. But why, because the mailserver on my own page (where I now host pluck in a subdirectory) sends mails to hotmail.com or gmail.com.

17

Re: Contact form not working

Mail's here, contents "This is a testmessage like you asked on the Pluckforum.
<br>Thanx for the effort, I really appreciate it."

I checked, your server is blacklisted. That means, if the email account that recieves the message checks for blacklisted servers, it throws them away (yours does, mine doesn't). Here you can see it with your own eyes: http://www.mxtoolbox.com/SuperTool.aspx … hosting.nl

Ok - blacklisting sucks and its pretty hard to remove the IP from the blacklist, so you should use another email or... else... i don't know. Sorry, there's not much you can do.

Greets Marc

Edit: Another idea: Use another hoster with a mail server that is not blacklisted.

Last edited by mdsky (28-07-2010 15:48:41)

if (empty($wine) AND $music != 'classic') {
    $coding = false;
}

18

Re: Contact form not working

Okay, problem solved. I'm glad it's not Pluck related, because I really like it and was thinking about using it for other websites.
My other mailforms also don't seem to come through to hotmail and gmail after all.
So, Pluck rules, hosting provider sucks. Thanx alot for the help!

19

Re: Contact form not working

np. All together now: Pluck rules! smile

if (empty($wine) AND $music != 'classic') {
    $coding = false;
}